svelte-algolia-instantsearch
svelte-algolia-instantsearch copied to clipboard
Using PageData with SSR
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')