Skip to content

Intercept and queue actions after errors #365

Open
@kosbog

Description

@kosbog

Current Behavior

I need to make a re-request after 4xx & 5xx errors. I read the doc and followed the example. And it works. But I don't understand some points.

Expected Behavior

I want more flexible control of intercepted requests.

  • Loop. If there is a request error again, there will be an interception and a new request. This is a loop. Am I understanding correctly? If not, how can this behavior be controlled?
  • Delay. How to call an intercepted request after a certain period of time?

How to reproduce

Just run the app and use this tool.

Your Environment

software version
react-native-offline ^6.0.0
react-native 0.67.2
node 16.16.0
yarn 1.22.19

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions