SIGN IN SIGN UP
immerjs / immer UNCLAIMED

Create the next immutable state by mutating the current one

0 0 57 JavaScript

fix: Preserve insertion order of Sets, fixes #819 (#976)

* Proposed fix for #819 to preserve Set insertion order

* Proposed fix for #819 (B)

We are already cloning and iterating over the Set. If we go a step further and clear it before iteration, and re-add all children during iteration, we can preserve insertion order.
J
jdip committed
b3eeb69f2926c5f9ef3632023d3ef0695470f724
Parent: b9eae1d
Committed by GitHub <noreply@github.com> on 1/15/2023, 5:43:07 PM