-
Notifications
You must be signed in to change notification settings - Fork 32
Dropped dependency isomorphic-fetch in favor of cross-fetch (React Native compatible) #71
Conversation
@lquixada: Thank you for submitting a pull request! Before we can merge it, you'll need to sign the Meteor Contributor Agreement here: https://contribute.meteor.com/ |
@evans I did a small contribution here since isomorphic-fetch is outdated. hope it's useful to you as it is for me. |
Please also consider #30 (it basically includes this patch as well). |
@lquixada This is great! @ctavan Thank you! My proposal moving forward is to merge this and publish a 0.7, then merge the jest/apollo-fetch-polyfill from #30 with a publish to 1.0, since I think it's what we want apollo-fetch and a breaking change. How does that sound? CC @jbaxleyiii |
I'm totally fine with that @evans! I just ported the test suite to jest in my other branch… Will need a few more minutes to get things running with lerna as well. |
@evans @jbaxleyiii any news here? |
…tive compatible).
any progress here? |
@michaelknoch the issue you're seeing should be independent of Have you tried passing your own ponyfill or polyfilling |
@ctavan |
@michaelknoch please just refer to the documentation: https://github.com/apollographql/apollo-link/tree/master/packages/apollo-link-http#global-fetch
And: https://github.com/apollographql/apollo-link/tree/master/packages/apollo-link-http#options
So in short: You just use your favorite fetch ponyfill (https://github.com/lquixada/cross-fetch or the more lightweight https://github.com/developit/unfetch) and pass it as an option to the |
isomorphic-fetch has a bug that prevents it from running in a react native environment. Since it is no longer maintained, it will never be fixed. That also means dependencies are outdated. cross-fetch is React Native compatible.