Skip to content

Commit

Permalink
fix: always offline
Browse files Browse the repository at this point in the history
  • Loading branch information
mbret committed Feb 26, 2024
1 parent bb0f7b8 commit 7639040
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/web/src/queries/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,13 @@ export const queryClient = new QueryClient({
* rxdb change with middleware. However since it's harder to maintain we just don't
* use cache by default.
*/
gcTime: 0
gcTime: 0,
/**
* @important
* offline PWA.
* Don't forget to set it back to default when making online queries
*/
networkMode: "always"
}
}
})

0 comments on commit 7639040

Please sign in to comment.