You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 10, 2018. It is now read-only.
Some cases it would be useful to get the current value from the store instantly. Imagine that you react to a button click, and in order to dispatch an action you need some value from the store.
Currently you need to do this:
onLoginClick(loginData){this.store.select(this.selector.getCountry()).take(1).subscribe(country=>{this.store.dispatch(this.action.login({
loginData,
country
}));});}
The performance would be even better, because just to get the current value, you don't need to create a new Subscription. Do you think it makes sense to introduce a method like that on the Store?