Closed
Description
openedon Mar 5, 2024
Hey 👋
Why is it that when adding (or removing/updating/etc...) items inside an entity-adapter's state, entity-adapter will first push into the array, then run .sort(sortFn)
on the entire array?
Wouldn't it make more sense to find the index where the new item should be at (O(log(n)), and splice
the ids
array?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Metadata
Assignees
Labels
No labels