Closed GoldingAustin closed 1 month ago
Latest commit: 9575c673f87f999208a8f3543dd33e7729c7d1ba
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
Fix new array index value not being cloned before insertion into store - Fixes #5099
packages/xstate-solid/src/createImmutable.ts
: Refactored theupdateStore
function to deep clone new elements in the array, ensuring immutability.Additions to test cases:
packages/xstate-solid/test/useActor.test.tsx
: Added a new test case to verify that moving objects between arrays does not mutate the context.