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
Replace isomorphic-fetch with node-fetch #16
Comments
@schickling, I don't recommend using node-fetch. Although it works with some browsers, it doesn't on those who doesn't support window.fetch natively such as IE11-. One possible candidate would be whatwg-fetch but it's not suitable for node environments. isomorphic-fetch found a way to get the best of both worlds but it came with a flaw: a bug that stops it from working on React-Native enviroments, issue 125, also mentioned on #14. The problem is that repo is not maintained anymore. So we're orphans here. Probably a lesser known project like fetch-everywhere would do the trick or you can roll out your own! |
Thanks a lot. This is great input! |
First off, thank you for this package. It has helped me out tremendously. As for this discussion, I have been having success using fetch-everywhere. |
We have issues with a lot of fetch alternatives in the community. For instance, isomorphic-fetch has this bug, is no longer maintained and is outdated. fetch-everywhere is in the same situation but with the bug fixed. In both of them polyfill is mandatory. This can be an issue sometimes. That's why I created cross-fetch. We have this project for a huge e-commerce company here that the same javascript codebase needed to run on several platforms (react-native included). No lib felt right for this job. But now we use cross-fetch: it's fixed, updated and cross-platform. |
Thanks for accepting my PR! I'm so excited! I'll finally be able to move my graphql migration foward! 🎉 |
Given problems as describe in #14 it probably makes sense to replace
isomorphic-fetch
withnode-fetch
.Let's keep this up for discussion for a while to collect feedback/hear objections.
The text was updated successfully, but these errors were encountered: