useQuery to fetch some initial form data. When the data is fetched, I pass it to a form component which calls useForm from React Hook Form with the data as the defaultValues. When submitting the form, I call a mutation. In that mutation's onSuccess, I invalidate the same query that fetched the initial data. I would like to call reset when the query is finished invalidating with the new defaultValues. Every example I've seen calls reset in the onSucess callback of the mutation. I don't want to reset until the query is finished invalidating though. Is there any way I can achieve this?https://x.com/tan_stack/status/2031128535470104577?s=20
dry-scarlet · 8h ago
https://x.com/powersync_/status/2010721010006552775?s=20
dry-scarlet · 2mo ago
You can now submit your website/app/project to http://TanStack.com 's new showcase and have it seen by the TanStack community! - Global showcase browser - Per-library filters - Category filters Submit here: https://tanstack.com/showcase/submit View all here: https://tanstack.com/showcase
dry-scarlet · 3mo ago