Error Handling
Handling errors within selectors
@State({ ... })
class AppState {
@Selector()
static getCount(state: StateModel) {
return state.count.number.value;
}
}this.store.reset({}); // reset all statesconst state = {};
function getCount() {
return state.count.number.value;
}
const count = getCount(); // will throwWhy does RxJS unsubscribe on error?
Last updated

