Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any plan to support React.lazy? #81

Closed
pd4d10 opened this issue Nov 27, 2022 · 1 comment · Fixed by #95
Closed

Any plan to support React.lazy? #81

pd4d10 opened this issue Nov 27, 2022 · 1 comment · Fixed by #95

Comments

@pd4d10
Copy link

pd4d10 commented Nov 27, 2022

To be used with React.Suspense

https://reactjs.org/docs/react-api.html#reactlazy

Update: found this PR rescript-lang/rescript#5703 dynamic import implementation, probably related

@cknitt
Copy link
Member

cknitt commented May 2, 2023

Yes, dynamic import is finally here thanks to @mununki and React.lazy works with it as describe here:
rescript-lang/rescript#6223 (comment) 🎉

Will add it to rescript-react in the next days.

@cknitt cknitt mentioned this issue May 2, 2023
@cknitt cknitt closed this as completed in #95 May 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants