Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Intercept and queue actions after errors #365

Open
kosbog opened this issue Sep 29, 2022 · 1 comment
Open

Intercept and queue actions after errors #365

kosbog opened this issue Sep 29, 2022 · 1 comment
Labels

Comments

@kosbog
Copy link

kosbog commented Sep 29, 2022

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
@stale
Copy link

stale bot commented Jun 18, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Jun 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant