feat: add query provider to App.svelte

This commit is contained in:
Ilia Mashkov
2026-01-13 20:04:39 +03:00
parent 170c8546d3
commit ad6ba4f0a0

View File

@@ -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>
<Page /> <Layout>
</Layout> <Page />
</Layout>
</QueryProvider>