-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[fix] Apply updated
stuff
(and other page
properties) when `get_n…
…avigation_result_from_branch` called (#4392) * add test * apply updated props.page when update / goto page * add changeset * fix lint * fix formatting * update page store more conservatively Co-authored-by: Rich Harris <hello@rich-harris.dev>
- Loading branch information
1 parent
f445802
commit e5f8065
Showing
7 changed files
with
86 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@sveltejs/kit': patch | ||
--- | ||
|
||
apply updated `props.page` when update or goto page |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
packages/kit/test/apps/basics/src/routes/store/stuff/foo.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<script context="module"> | ||
let is_first = true; | ||
export function load() { | ||
if (is_first) { | ||
is_first = false; | ||
throw new Error('uh oh'); | ||
} | ||
return { | ||
stuff: { | ||
foo: true | ||
}, | ||
props: { | ||
number: 2 | ||
} | ||
}; | ||
} | ||
</script> | ||
|
||
<script> | ||
export let number; | ||
</script> | ||
|
||
<h1>stuff - foo</h1> | ||
<p>Number prop: {number}</p> | ||
<a href="/store">store</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters