aweary / react-copy-write

✍️ Immutable state with a mutable API
MIT License
1.79k stars 54 forks source link

Array check in ConsumerIndirection causing update issues with selectors that return arrays #23

Closed aweary closed 6 years ago

aweary commented 6 years ago

Here we assume that if state is an array then there must be an array of selectors. But a single selector can return an array, so we end up comparing the items in the array when we should be comparing the array itself.