svelte-algolia-instantsearch icon indicating copy to clipboard operation
svelte-algolia-instantsearch copied to clipboard

Using PageData with SSR

Open sefai opened this issue 10 months ago • 0 comments

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')

sefai avatar Apr 19 '24 14:04 sefai