aymeric-giraudet / svelte-algolia-instantsearch

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

Using PageData with SSR #39

Open sefai opened 4 months ago

sefai commented 4 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')