react-openapi-client
react-openapi-client copied to clipboard
Retry When Network is Down at Startup
- Updates dependencies to latest (React 18)
- Adds a
retryoption in milliseconds to the provider: Retries to read the JSON file and to initialize the service when it is down at startup. - Adds an internal status
readythat is set tofalsewhen API init failed. - API calls are only executed, once
readyistrue
Tests still succeed, but I haven't added new tests for the new feature.
See: #52
Somehow does not work that way... Could eventually be a problem of calling setState in a timed function?