-
Notifications
You must be signed in to change notification settings - Fork 43
React 19 APIs #133
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
React 19 APIs #133
Conversation
Makes me wonder if we should not bite the bullet and move PRs like rescript-lang/rescript#7402 are a good example that the current setup isn't ideal. |
Eventually we need to do this, yes. Not sure if I'd still like to include that in 12.0 though. In any case, we need a version with React 19 support first that still works with ReScript 11, too. |
`use(context)` seems to exactly replicate the `useContext(context)` logic, and we want to maximize retro-compability (ie. not switch from `useContext` to `use` for that under the hood). simply adding `usePromise(promise)` seems to be the simplest, least invasive way to add the functionality.
I tested examples from react 19 blog post on a project:
and everything works well, so for me it's ok! 👍 |
this **kinda** goes against the zero-cost philosophy, but I don't see a world where users would not have to reimplement those.
Closes #130