-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[@xstate/solid] Fix context mutation with new values nested in arrays (…
…#5100) * @xstate/solid Fix new array index value not being cloned before insertion into store - Fix #5099 Signed-off-by: Austin Golding <[email protected]> * @xstate/solid Fix new array index value not being cloned before insertion into store - Fix #5099 Signed-off-by: Austin Golding <[email protected]> * @xstate/solid Update new array index set to use placeholder value if wrappable to prevent mutating original object/array without needing to deep clone Signed-off-by: Austin Golding <[email protected]> --------- Signed-off-by: Austin Golding <[email protected]>
- Loading branch information
1 parent
42304da
commit 519188a
Showing
3 changed files
with
151 additions
and
9 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 @@ | ||
--- | ||
'@xstate/solid': patch | ||
--- | ||
|
||
When setting new array indexes, if the value is an object/array, use placeholder empty value to prevent mutation of original machine context |
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