feat: implement push notification registration and nudge feature; enhance user settings and notification handling

This commit is contained in:
Mo Tarbin
2025-09-18 01:13:37 -04:00
parent b71a533024
commit 707ba55e1d
13 changed files with 672 additions and 320 deletions

View File

@@ -1,7 +1,16 @@
import { QueryClient, QueryClientProvider } from '@tanstack/react-query'
const QueryContext = ({ children }) => {
const queryClient = new QueryClient()
const queryClient = new QueryClient({
defaultOptions: {
queries: {
staleTime: 60000, // 60 seconds
gcTime: 300000, // 5 minutes
refetchOnWindowFocus: false,
retry: 0,
},
},
})
return (
<QueryClientProvider client={queryClient}>{children}</QueryClientProvider>