I'd like to persist some user data to localStorage and need for the store to subscibe to state change but I don't want to fire each time the state changes but rather only when a particular event happens as in my case a user_update event.
Any ways can I have the store to subscribe to a specific event instead of the generic:
store.subscribe(()=>{
//save to local storage here
})
Well thanks heaps for your help :)