Skip to content

Error handling middleware #182

@mstone121

Description

@mstone121

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Task 3.6Front-end implementationpolishIdeas for improvement by Azavea

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions