You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(atoms): replace arrays instead of deep merging in mutate shorthand
Arrays in the `.mutate` shorthand now fully replace instead of deep
merging by index. The previous behavior was surprising - e.g.
`signal.mutate({ arr: [1, 2] })` on `[10, 20, 30]` would produce
`[1, 2, 30]`. Now it produces `[1, 2]`. Use the callback form for
index-level updates: `signal.mutate(s => { s.arr[2] = 30 })`.
Also fixes pre-existing type errors by loosening `AtomApiGenerics`
Signal constraint from `Signal` to `AnySignal`, and consolidates
`RecursivePartialWithArrayPlucking` into `RecursivePartial` (with an
array guard added to both core and atoms).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments