Tim van Dam
Tim van Dam
@coji FYI this specific error is caused by a typo. You're using `actionData.lastResult` while your action returns `lastRusult`
This would be great to have. `deleteMany` uses two queries: one that determines which rows to delete, and one that does the actual deleting. This is much slower than a...
This does not seem to work for some playground files because `File` cannot be JSONified, breaking `useActionData`. While `File` is never sent from server to client, this is not reflected...
Awesome, not sure why you cannot push to my branch, but I've added what you've commented. Very nice solution with the generic, I was thinking of much more complex ways...
The pattern I have adopted in the meantime is: ```ts fromSafePromise(x.match(asyncFn1, asyncFn2).then(id)).andThen(id) ``` Where `id` is an identity function that serves to 1) flatten the promise returned by the match...
> Hi @timvandam, > > I’m having a hard time understanding what you want to do. Could you provide a more complete example ? What I’m trying to achieve is...
@paduc Yes that would be fine too. I personally would prefer `fork` because its much clearer in my opinion. And neverthrow does not necessarily follow the Promise naming (e.g. by...
@macksal achieving the behavior of `fork` by using `andThen` and `orElse` is possible, but not a nice pattern, e.g.: ```ts resultAsync .andThen(async (val) => { if (await condition(val)) { return...
I encountered this as well. Also wonder why the defaults expect everything to be json. That does not make much sense to me as pretty much all forms I implement...
running into this as well!