You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to initialize an indexedDB in load, which returns null on the server and await the DB on the browser. indexedDB may not available so the promise may reject. I want to handle this with an error page, which is not possible with this issue.
The text was updated successfully, but these errors were encountered:
Describe the bug
When
layout.js
returns on the server but throws an error on the browser, the error page doesn't show up but the console logs an uncaught error.(
page.js
works as expected)Reproduction
https://stackblitz.com/edit/sveltekit-client-layout-load-error-repro
Step 1: scaffold a skeleton project
Step 2: create a
layout.svelte
and alayout.js
with the following content:Step 3: go to homepage and the error page doesn't show up
Logs
System Info
Severity
annoyance
Additional Information
I want to initialize an indexedDB in load, which returns
null
on the server and await the DB on the browser. indexedDB may not available so the promise may reject. I want to handle this with an error page, which is not possible with this issue.The text was updated successfully, but these errors were encountered: