Decide which SSR Data Fetching Library to use
See original GitHub issueList of Libraries that has been discussed till date:
- isomorphic-fetch
- isomorphic-unfetch
- axios
- cross-fetch
- node-fetch
- whatwg-fetch
Last two libraries, if used, should be used together, as they are not isomorphic in nature.
@Zeko369 suggested, respective to PR https://github.com/freeCodeCamp/chapter/pull/140, we are already using isomorphic-fetch
@Sonicrida suggested axios
is not maintained for a while and has some security vulnerabilities.
@Shub1427 concluded that isomorphic-fetch
, isomorphic-unfetch
and axios
hasn’t been maintained for a long period, though recently from September axios
has a new core developer helping to resolve issues as fast as he could.
Regarding security vulnerability for axios, it was a false alarm as per this.
@nik-john suggested to use cross-fetch
which seems a viable option, as it’s being actively maintained, and is a wrapper around node-fetch
and whatwg-fetch
(which I was trying to do by myself in PR https://github.com/freeCodeCamp/chapter/pull/166).
This discussion needs to be concluded, as the PR https://github.com/freeCodeCamp/chapter/pull/166 is been on hold for a long time now due to this and acts as a blocker to the same.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:15 (14 by maintainers)
Top GitHub Comments
Ok closing this as
cross-fetch
seems to be the consensus@Shub1427 Hopefully this unblocks you
@bernhard-hofmann It’s pretty straight forward - because we’re going to use this library extensively on Chapter (in no particular order):