Updating React to v17.0.2 #1342
LorenDorez
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In trying to update the React.Core project to handle v18 ive come to find that the JSE engines dont have support for TextEncoder/Decoder like modern browsers do. This is a pain point because in React v18 they changed the method .renderToNodeStream() from simply throwing an error on execution/usage to adding support using a NodeReadableStream which imports and uses TextEncoder/Decoder. We could add a polyfill inside React.Core but im on the fence is this is the best approach or have the consuming app add whatever polyfill they deem best. Also going forward using .renderToString() isnt going to be the best way to handle things as it doesnt support the new Suspense/Data fetching and will just render the fallback placeholders.
My thoughts here will be to bring the react version up to v17.0.2 again in a second pull request/release after the .NET upgrades.
Beta Was this translation helpful? Give feedback.
All reactions