aymeric-giraudet / svelte-algolia-instantsearch

A Svelte component library for Algolia InstantSearch.js
https://svelte-algolia-instantsearch.vercel.app/
MIT License
52 stars 12 forks source link

Using PageData with SSR #39

Open sefai opened 7 months ago

sefai commented 7 months ago

When used in SSR mode, it is impossible to pass data from page.server or layout.server loaders to the page.

This is the compile time error => 'data' is referenced directly or indirectly in its own type annotation.

This is the runtime error => TypeError: Cannot read properties of undefined (reading 'someDataFromLayout')