Skip to content

root: error notification

Fabio M requested to merge feat/error-notification into feat/20-judging-ballot

The idea is to have a global way to display errors to users (this is a MUST), without any additional effort, and in a consistent way.

What I wanted to achieve is:

  • create a new entry in the state (notifications)
  • upon slice function error, parse the axios error and add it to the state
  • a component checks the state and shows the notifications (with possibility to dismiss them)

The current implementation doesn't get the notificatoins/handleAxiosError function called. Is this the right way to do it?

Merge request reports