Adding support for React.lazy() and Suspense #5285
4x4notfound
started this conversation in
General
Replies: 1 comment 1 reply
-
If you’re using React 18 you can do that, but I AFAIK Cloudflare runtimes doesn’t support dynamic imports so here the limit is not in Remix or React but rather Cloudflare. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In particular environments like Cloudflare workers the
@remix-run/dev/server-build
creates a long startup time (sus is react router) which causes a failure for deployment.I think adding code splitting techniques like
React.lazy
with Suspense would be helpful in supporting these restrictive envs.Beta Was this translation helpful? Give feedback.
All reactions