I have a Sveltekit project with the below folder structure in src/routes:
+layout.server.js
+page.svelte
child_1/
+page.svelte
child_2/
+page.svelte
The website should load the data from +layout.server.js when it is on the root page or child_1 but not when it is on child_2.
How do I make this happen?
Thanks in advance for any advice.
Top comments (0)