loadable-components icon indicating copy to clipboard operation
loadable-components copied to clipboard

#718 server-side-rendering with react 18

Open vaukalak opened this issue 2 years ago • 1 comments

Summary

th The issue https://github.com/gregberge/loadable-components/issues/718 mentions, that this library is not usable with react 18. However, this is an update of server-side-rendering example within react 18. And it works fine without errors or warnings. From what I can see you should just use react >=16.3.0: https://github.com/gregberge/loadable-components/blob/main/packages/component/package.json#L37

Test plan

cd packages/component
yarn
yarn dev

open http://localhost:9000. Observe that server-side rendered code is properly hydrated without any warnings: lodable-components-react-18-ssr

vaukalak avatar Sep 12 '22 18:09 vaukalak

The problem with React 18 is more about Suspense. The provided example is not using any "React" orchestration and hence has no issues.

theKashey avatar Sep 15 '22 10:09 theKashey

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Nov 23 '22 06:11 stale[bot]