-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: properly update
svelte:component
props when there are spread p…
- Loading branch information
1 parent
314c3d4
commit 055e7a8
Showing
6 changed files
with
27 additions
and
7 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 @@ | ||
--- | ||
'svelte': patch | ||
--- | ||
|
||
fix: properly update `svelte:component` props when there are spread props |
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
4 changes: 4 additions & 0 deletions
4
packages/svelte/test/runtime/samples/dynamic-component-spread-props/Comp1.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 |
---|---|---|
@@ -1,5 +1,9 @@ | ||
<script> | ||
export let value; | ||
export let foo; | ||
export let cb; | ||
</script> | ||
|
||
<p>value(1) = {value}</p> | ||
<p>foo={foo}</p> | ||
<p>typeof cb={typeof cb}</p> |
4 changes: 4 additions & 0 deletions
4
packages/svelte/test/runtime/samples/dynamic-component-spread-props/Comp2.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 |
---|---|---|
@@ -1,5 +1,9 @@ | ||
<script> | ||
export let value; | ||
export let foo; | ||
export let cb; | ||
</script> | ||
|
||
<p>value(2) = {value}</p> | ||
<p>foo={foo}</p> | ||
<p>typeof cb={typeof cb}</p> |
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