Skip to content

Question: Retry failed action in single flow #1383

Closed
@tristangodfrey

Description

@tristangodfrey

How would one implement the following flow?

Dispatch API action > API middleware executes request > Request fails (401, auth token needs to be refreshed) > Refresh auth token (refresh token action called from middleware) > Re-execute original action

Is it possible to do this all in the flow of a single action? I can post code if necessary, hope my question is clear enough.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions