-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Labels
bugSomething isn't workingSomething isn't workingp1-importantSvelteKit cannot be used by a large number of people, basic functionality is missing, etc.SvelteKit cannot be used by a large number of people, basic functionality is missing, etc.
Description
Describe the bug
The invalidate() function no longer triggers a reload of the root layout (which has changed data). It works on v443, but stopped working on v444+
Reproduction
https://github.com/CaptainCodeman/sveltekit-example/tree/ssr
The invalidate() call happens after client-side auth state changes and /session is called to set or clear server-side cookie. LayoutData should reflect the user from that cookie.
Needs firebase emulator running to execute locally. I can make a simpler cutdown repro if needed, was just working on this example which made me notice it:
No data reloads with v444:
Screen.Recording.2022-08-27.at.4.35.22.PM.mov
Same code with v443 showing layout data updates:
Screen.Recording.2022-08-27.at.4.36.00.PM.mov
Logs
No response
System Info
System:
OS: macOS 12.5.1
CPU: (6) x64 Intel(R) Core(TM) i5-8500B CPU @ 3.00GHz
Memory: 1.97 GB / 32.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 16.14.0 - /usr/local/bin/node
npm: 8.3.1 - /usr/local/bin/npm
Browsers:
Brave Browser: 102.1.39.111
Chrome: 104.0.5112.101
Chrome Canary: 107.0.5265.0
Firefox: 103.0.2
Safari: 15.6.1
Safari Technology Preview: 16.0
npmPackages:
@sveltejs/adapter-node: next => 1.0.0-next.87
@sveltejs/kit: 1.0.0-next.444 => 1.0.0-next.444
svelte: ^3.49.0 => 3.49.0
vite: ^3.0.9 => 3.0.9Severity
serious, but I can work around it
Additional Information
No response
ollema, Coretteket, acaala, zygen, kristjanmar and 2 more
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingp1-importantSvelteKit cannot be used by a large number of people, basic functionality is missing, etc.SvelteKit cannot be used by a large number of people, basic functionality is missing, etc.