ianstormtaylor / react-values

A set of tiny React components for handling state with render props.
https://git.io/react-values
MIT License
1.02k stars 39 forks source link

Fix clone values #12

Closed ianstormtaylor closed 6 years ago

ianstormtaylor commented 6 years ago

This allows transforms to define whether they mutate or not, and it clones the value before giving it to them if so. This way new values can always be compared by reference, even for things like arrays, maps and sets.

Fixes #5