From dd0e820b838371d1a89e4e5673fcfe8383d646b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fe=CC=81lix=20Pe=CC=81ault?= Date: Tue, 12 Oct 2021 00:08:56 +0200 Subject: [PATCH] Set reusable global data on server side through `stuff` https://kit.svelte.dev/docs#loading-input-stuff --- src/routes/__layout.svelte | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/routes/__layout.svelte b/src/routes/__layout.svelte index b9d42a2..20eff12 100644 --- a/src/routes/__layout.svelte +++ b/src/routes/__layout.svelte @@ -113,7 +113,8 @@ locations: data.location_aggregated[0].count.id, countries: data.country_aggregated[0].count.id, }, - } + }, + stuff: data, } } \ No newline at end of file