react-fetch compatibility with 18-alpha releases #80
Replies: 1 comment 1 reply
-
|
React Fetch depends on the experimental Cache API (#25). The Cache API is not included the in the 18 Alpha, and indeed is only available in the experimental builds (so React Fetch only works with them). This is because it's a lot more experimental than anything else. By comparison,
Yes. I think it's OK to demo |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey all!
Over the weekend, I was playing with react-fetch and Suspense
I was not able to use
react-fetchwith the latest build of18-alpha(18.0.0-alpha-e4e8226c6-20210812at the time). I got this error.(This sandbox re-creates the error.)
I suspect that it's because of the way
unstable_prefixes are removed in candidate releases.My fix was to use the
experimentalrelease with the same sha. And this worked.{ "dependencies": { "react": "0.0.0-experimental-e4e8226c6-20210812", "react-dom": "0.0.0-experimental-e4e8226c6-20210812", "react-fetch": "0.0.0-experimental-e4e8226c6-20210812", "react-scripts": "0.0.0", "sleep-promise": "9.1.0" } }I'm curious if the
react-fetchexample is something that we should be able to demo with pre-release versions of React 18. If so, is using theexperimentalreleases the preferred method? Or is there a plan to bringreact-fetch(et. al) into the same18-alpharelease scheme?Thanks for your guidance!
Beta Was this translation helpful? Give feedback.
All reactions