Closed
Description
Describe the bug
According to the official sveltekit documentation, adding __layout.reset.svelte inside a nested folder should reset layout stack and prevent inheriting from upper level layouts. Unfortunately, the browser is receiving some logs from the module context of __src/routes/__layout.svelte
. ssr logs are clean and not affected.
Reproduction
- https://github.com/jsprog/sveltekit-issue--layout-stack-not-fully-reset
- the expected behavior is:
src/routes/login/__layout.reset.svelte
should resetsrc/routes/__layout.svelte
. - after visiting
localhost:3000/login
, you'll notice the log from the module context ofsrc/routes/__layout.svelte
is still there.
Logs
No response
System Info
System:
OS: Linux 4.19 LMDE 4 (debbie) 4 (debbie)
CPU: (4) x64 Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz
Memory: 10.01 GB / 15.56 GB
Container: Yes
Shell: 5.0.3 - /bin/bash
Binaries:
Node: 14.17.1 -
npm: 6.14.13 -
Browsers:
Chrome: 92.0.4515.131
Firefox: 68.8.0esr
Severity
annoyance
Additional Information
- ssr logs are not affected by this.
- other nested layout files are not affected by this, and their children
__layout.reset.svelte
are fully resetting them.