mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -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.
|
||||
dehydrateOptions: { shouldDehydrateQuery: () => false },
|
||||
}}
|
||||
onSuccess={async () => {
|
||||
await queryClient.resumePausedMutations();
|
||||
queryClient.invalidateQueries();
|
||||
}}
|
||||
>
|
||||
<ThemeSelector
|
||||
theme={theme}
|
||||
|
Loading…
x
Reference in New Issue
Block a user