I can't seem to fetch GROQ results within a __layout.svelte file or even within libs/Footer.svelte for example
GROQ (found in index.js):
export async function get() {
const data = await client.fetch(/* groq */ `{
"settings": *[_type == "siteSettings"][0]
}
}
I tried:
<script>
export let settings
</script>
{settings}
The above code obviously works within Index.svelte, but can't seem to pass through {settings} to the __layout.svelte file?