Fix mutations not resuming after reconnecting/relaunching

This commit is contained in:
Zoe Roux 2023-12-20 05:03:32 +01:00
parent 7a99bae541
commit e843b73472

View File

@ -126,6 +126,10 @@ export default function Root() {
// Only dehydrate mutations, queries are not json serializable anyways.
dehydrateOptions: { shouldDehydrateQuery: () => false },
}}
onSuccess={async () => {
await queryClient.resumePausedMutations();
queryClient.invalidateQueries();
}}
>
<ThemeSelector
theme={theme}