mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-06-02 13:14:29 -04:00
Fix mutations not resuming after reconnecting/relaunching
This commit is contained in:
parent
7a99bae541
commit
e843b73472
@ -126,6 +126,10 @@ export default function Root() {
|
|||||||
// Only dehydrate mutations, queries are not json serializable anyways.
|
// Only dehydrate mutations, queries are not json serializable anyways.
|
||||||
dehydrateOptions: { shouldDehydrateQuery: () => false },
|
dehydrateOptions: { shouldDehydrateQuery: () => false },
|
||||||
}}
|
}}
|
||||||
|
onSuccess={async () => {
|
||||||
|
await queryClient.resumePausedMutations();
|
||||||
|
queryClient.invalidateQueries();
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
<ThemeSelector
|
<ThemeSelector
|
||||||
theme={theme}
|
theme={theme}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user