bcherny / undux

⚡️ Dead simple state for React. Now with Hooks support.
https://undux.org
MIT License
1.49k stars 31 forks source link

Listen for any store change against initialState #109

Closed quinnvaughn closed 10 months ago

quinnvaughn commented 4 years ago

Hey, is there an easy way to check for any change against the initialState to update a field?

So I have two different sets of filters, and I want to show a reset button if anything changes (by changing the resetFilters boolean), is there any easy way to do that in one listener so I'm not writing a listener for each different field?