You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, I'm new here, just looking around, so I haven't tried this package yet. I would not have expected that this package would also offer a svelte-query utility, but it's great to know that it does.
Anyway I have a few questions:
Is the return type of onMutate inferred correctly by TS? What do you see when you hover your mouse cursor on onMutate? What happens if you explicitly type the return type of onMutate, by for example writing onMutate: async (newTodo): string => {, does that change the type of context in the next function?
Doing the following on my Svelte page (Optimistic Updating):
However i'm getting an error:
Not sure if it's a bug, or if i'm doing something wrong. Followed the guide here https://tanstack.com/query/v4/docs/framework/react/guides/optimistic-updates
The text was updated successfully, but these errors were encountered: