aweary / react-copy-write

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

Remove mutate from render callback, stop using tuples for state #38

Closed aweary closed 6 years ago

aweary commented 6 years ago

Since mutate is exposed at the top-level from createSelector it doesn't make a lot of sense to include it in the render callback.

This change lets us pass in selected state as arguments instead of using an array all the time (woo!)

davej commented 6 years ago

FYI, the readme doc still uses tuples.