mirror of
https://github.com/aljazceru/rabbit.git
synced 2025-12-24 09:14:25 +01:00
update
This commit is contained in:
17
src/App.tsx
17
src/App.tsx
@@ -1,19 +1,26 @@
|
||||
import type { Component } from 'solid-js';
|
||||
import { Routes, Route } from '@solidjs/router';
|
||||
import { QueryClient, QueryClientProvider } from '@tanstack/solid-query';
|
||||
// import { persistQueryClient } from '@tanstack/solid-query-persist-client';
|
||||
// import { createSyncStoragePersister } from '@tanstack/query-sync-storage-persister';
|
||||
|
||||
import Home from '@/pages/Home';
|
||||
import NotFound from '@/pages/NotFound';
|
||||
import AccountRecovery from '@/pages/AccountRecovery';
|
||||
|
||||
const queryClient = new QueryClient();
|
||||
const queryClient = new QueryClient({});
|
||||
|
||||
// const localStoragePersister = createSyncStoragePersister({ storage: window.localStorage });
|
||||
|
||||
// persistQueryClient({
|
||||
// queryClient,
|
||||
// persister: localStoragePersister,
|
||||
// });
|
||||
|
||||
const App: Component = () => (
|
||||
<QueryClientProvider client={queryClient}>
|
||||
<Routes>
|
||||
<Route path="/" element={<Home />} />
|
||||
<Route path="/recovery" element={<AccountRecovery />} />
|
||||
<Route path="/*" element={<NotFound />} />
|
||||
<Route path="/" element={() => <Home />} />
|
||||
<Route path="/*" element={() => <NotFound />} />
|
||||
</Routes>
|
||||
</QueryClientProvider>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user