-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
Task 3.6Front-end implementationFront-end implementationpolishIdeas for improvement by AzaveaIdeas for improvement by Azavea
Description
Overview
Add a redux store middleware to handle API errors
Is your feature request related to a problem? Please describe.
We're using useEndpointToastError everywhere we're using a mutation hook. This feels redundant.
Describe the solution you'd like
Move the functionality from useEndpointToastError into a redux store middleware.
Additional Context
https://redux-toolkit.js.org/rtk-query/usage/error-handling#handling-errors-at-a-macro-level
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Task 3.6Front-end implementationFront-end implementationpolishIdeas for improvement by AzaveaIdeas for improvement by Azavea