feat: add query provider to App.svelte
This commit is contained in:
@@ -6,13 +6,17 @@
|
|||||||
* layout shell. This is the root component mounted by the application.
|
* layout shell. This is the root component mounted by the application.
|
||||||
*
|
*
|
||||||
* Structure:
|
* Structure:
|
||||||
|
* - QueryProvider provides TanStack Query client for data fetching
|
||||||
* - Layout provides sidebar, header/footer, and page container
|
* - Layout provides sidebar, header/footer, and page container
|
||||||
* - Page renders the current route content
|
* - Page renders the current route content
|
||||||
*/
|
*/
|
||||||
import Page from '$routes/Page.svelte';
|
import Page from '$routes/Page.svelte';
|
||||||
|
import { QueryProvider } from './providers';
|
||||||
import Layout from './ui/Layout.svelte';
|
import Layout from './ui/Layout.svelte';
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<Layout>
|
<QueryProvider>
|
||||||
|
<Layout>
|
||||||
<Page />
|
<Page />
|
||||||
</Layout>
|
</Layout>
|
||||||
|
</QueryProvider>
|
||||||
|
|||||||
Reference in New Issue
Block a user