improve notification and performance

This commit is contained in:
2023-11-30 16:02:28 +07:00
parent 6f68c2762b
commit 80f675cb54
11 changed files with 356 additions and 291 deletions

View File

@@ -12,6 +12,9 @@ const queryClient = new QueryClient({
defaultOptions: {
queries: {
gcTime: 1000 * 60 * 60 * 24, // 24 hours
queries: {
retryDelay: (attemptIndex) => Math.min(1000 * 2 ** attemptIndex, 10000), // 10 seconds
},
},
},
});
@@ -22,7 +25,7 @@ const root = createRoot(container);
root.render(
<QueryClientProvider client={queryClient}>
<ReactQueryDevtools initialIsOpen={false} />
<Toaster position="top-center" closeButton theme="system" />
<Toaster position="top-center" theme="system" closeButton />
<StorageProvider>
<NDKProvider>
<App />