In order to include a global Error object in my app state, I implemented an http interceptor to trigger the setError
action:
export interface IlgError {
message: string;
responseError: HttpErrorResponse;
}
export const setError = createAction("[Global] Error Occurred", props<{ errorObj: IlgError }>());
However, upon dispatching this action, an error message is returned:
Error: Detected unserializable action at "errorObj.responseError"
The configuration for my app module looks like this:
StoreRouterConnectingModule.forRoot({ routerState: RouterState.Minimal }),
I am trying to understand what it means by "unserializable". Is there a way to disable this for specific actions?