Closed
Description
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?
Metadata
Metadata
Assignees
Labels
No labels