I am developing an Angular application using ngRx and trying to use my best practices. But I came to a place where I could not find how to act correctly, and as for HTTP (or Firebase) errors and presenting them to users.
I created actions for handling errors in my application, and I can, for example, show the modality when the user enters the wrong password, but I do not know if this is good. I would have to reuse error handling in all form components ...
Is it possible to create a “global” effect that gets all my actions using _FAILED (for example) and opens a Modal error? Who should show the modal, effects or component containing the form?
It would be very helpful if someone could share their experience!
source
share