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.
-
Hey all!
Over the weekend, I was playing with react-fetch and Suspense
I was not able to use
react-fetch
with the latest build of18-alpha
(18.0.0-alpha-e4e8226c6-20210812
at 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
experimental
release with the same sha. And this worked.I'm curious if the
react-fetch
example is something that we should be able to demo with pre-release versions of React 18. If so, is using theexperimental
releases the preferred method? Or is there a plan to bringreact-fetch
(et. al) into the same18-alpha
release scheme?Thanks for your guidance!
Beta Was this translation helpful? Give feedback.
All reactions