Error Handling
How NGXS handles errors
import { config } from 'rxjs';
const existingHandler = config.onUnhandledError;
config.onUnhandledError = function (error: any) {
if (shouldWeHandleThis(error)) {
// Do something with this error
} else {
existingHandler.call(this, error);
}
};Handling errors after dispatching an action
Custom unhandled error handler
Last updated

