-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
If the data returned from load inside a +page.server.js ("page-X") has the same shape as the data returned inside its corresponding +layout.server.js, the $page.data does not get updated when routing from "page-X" to another page that does not have its own +page.server.js file.
As a workaround I'm currently just adding a random key to the return value of +layout.server.js.
Reproduction
- toggle between the
rootandpage-1links a few time - the heading at the top should update accordingly
- now toggle between
rootand thepage-2links - the heading does not get updated when clicking on
root - now add
other: 5to the return object in/routes/+page.layout.js - now toggling between
rootandpage-2works - but toggling between
rootandpage-1does not update the heading
Logs
No response
System Info
StackblitzSeverity
serious, but I can work around it
Additional Information
No response
hanszoons, kesato, gterras, beeb, StevenFarley and 6 more
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working