tonyhb / redux-ui

Easy UI state management for react redux
636 stars 58 forks source link

Reset UI state of another component? #57

Open aledoroshenko opened 8 years ago

aledoroshenko commented 8 years ago

What's the best way to reset state of one component on button click in another component? Both wrapped in ui. From what i see, resetUI resets only "current" component (the one where we call it), and we can't do something like resetUI('componentKey') to reset component by key. Should i use ui reducer option for this, or there is another way?