TanStackT
TanStack2y ago
18 replies
sacred-rose

Sveltekit - $mutation.isSuccess stays true indefinitely after submit

As the title suggests isSuccess will stay true indefinitely after a createMutation call regardless of whether I invalidate in onSuccess or onSettled callbacks.
The isPending works, but I feel like it goes false before the queries are invalidated. (I could be wrong though)
It might not make a difference at all, but I was just wondering if I need to do something in my createMutation call to trigger the isSuccess parameter?

Thanks in advance for any help you can provide.
Was this page helpful?