merisbahti / klyva

A state management library that follows the React component model
MIT License
55 stars 4 forks source link

fix(reset-all): Add ability to at module level reset all atoms values #15

Open merisbahti opened 3 years ago

merisbahti commented 3 years ago

Adds a way to reset all atoms. Since all atoms are derived in some way from a base atom, it's enough to just reset all base atoms.

fixes: https://github.com/merisbahti/klyva/issues/12

What do you think sesam?

sesam commented 3 years ago

Nice! I had overlooked this. Small amount of added code for a very important feature to enable testing. I like it :)