-
Notifications
You must be signed in to change notification settings - Fork 61
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
fix: handle network error in retry function and add a callback #37
fix: handle network error in retry function and add a callback #37
Conversation
@nodkz Should |
@ntelkedzhiev can you fix broken tests? Run
While reviewing your code I came with the same idea about improvement of
For now, I don't know what behavior will be better. So do it according to your real use cases. |
Sounds good! Thanks for the suggestions! Will do. |
@nodkz When I run
Any idea why? |
It's very strange.
|
I'm now getting:
|
I have just clone your repo, and all works good on MacOS: git clone [email protected]:ntelkedzhiev/react-relay-network-modern.git ./_fork_rrnm
yarn install
# it returns some warnings with `fsevents`, but just ommit them
yarn test
# returns following output What operation system do you use? |
What operation system do you use? Your error looks like that Maybe you have globally installed
|
Very weird. No, I don't have any of the babel/jest packages globally installed. Tried it on two Macs - running I also don't get any |
What yarn version do you use?
Mine is Just updated to the latest version
And try again it with your repo to run tests. And it works without |
If you update |
I'm running 1.9.4 as well. |
Maybe this is needed: jestjs/jest#6053 (comment). I am also able to successfully build which is weird too. |
Damn. First time met such problem. Can you confirm that parent folders do not contain |
Yes, no |
Just updated packages in Tried to do it directly to your repo, but it looks like that you do not allow (remove checkbox when open PR) to send commits from maintainers/contributors. After merging with master, it required to run |
@nodkz Didn't have success after you pushed the changes. I added Also fixed the error so PR is ready to merge. Let me know what you want to do with the |
Please return back all babel configs, they are required for package building for the different environments. Just copy all content from https://github.com/relay-tools/react-relay-network-modern/blob/master/.babelrc to |
This code has some bug in tests. When running tests in watch mode:
and re-run tests several times, it sometimes throws an error, sometimes pass. It's a very strange behavior. Try to review it tomorrow. |
and I also think that the code is dirty and middlewate should be completely refactored. Killed about 1 hour on testing and understanding what happens. It's bad sign. |
Agreed. It needs to be rewritten. I'll submit a reworked PR next week. |
In progress right now |
@ntelkedzhiev Done. Please test it with your app. NOTABLE CHANGE: Property
|
My coworkers tested the new version with their app. All works well. Thanks for your help! |
🎉 This PR is included in version 2.4.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
@nodkz Great! Thanks a lot man! |
Closes #36