-
Couldn't load subscription status.
- Fork 349
Support for React 19 #846
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
Support for React 19 #846
Conversation
* 'main' of github.com:/reasonml/reason-react: Remove type callback duplicate
* 'main' of github.com:/reasonml/reason-react: fix: type of pipeable stream to allow objects with keys (#854) reason-react-ppx: + lower bound in ocaml add missing entries to changelog Fix multi-child fragment (#852) update compiler version in makefile cmd (#851) Add locations-check test (#844) fix: re-enable failing tests + fix location tests (#850) test: repro #840 (#842) Add CSS Box Alignment Module Level 3 (#847)
Co-authored-by: Javier Chávarri <[email protected]>
Co-authored-by: Javier Chávarri <[email protected]>
|
|
||
| /* https://react.dev/reference/react/useOptimistic */ | ||
| [@mel.module "react"] | ||
| external useOptimistic: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we @mel.uncurry some of these callbacks?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since I don't want to push code to this branch directly, done here: #867
| /* https://react.dev/reference/react/useActionState */ | ||
| [@mel.module "react"] | ||
| external useActionState: | ||
| (('state, FormData.t) => unit, 'state, ~permalink: bool=?) => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we add a unit argument at the end?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since I don't want to push code to this branch directly, done here: #867
|
@davesnx this is a big PR and there are some big changes. do you have a plan in your head or a link to something you've written about how to land these effectively in reason-react? more specifically about this PR, how do you want to move forward and what's missing? |
|
I was planning on using the branch "19" as a release candidate branch for all PRs depending on it, test it different repos (ahrefs included) and, if everything is good then do the opam release |
* '19' of github.com:/reasonml/reason-react: Update src/React.re Update src/React.re Update src/React.re
* Install melange-testing-library
* Install melange-testing-library npm deps
* Vendor melange-testing-library
* Fix Form__test with RTL
* Start migrating Hooks__test
* Remove dependency
* Remove unused code from Form__test
* Add a jest-devtoolsgs
* Add a jest-devtools
* Migrate Hooks and Form into RTL
* Add demo to manually test easily
* Use Uncurried for tests
* Migrate all React__test
* Force install since we are dealing with R19
* Snapshot with lower {}
* Remove jest from demo/dune
* Add comment on install --force
* Bind React.act and React.actAsync
* Bind React.act and React.actAsync
* Use React.act as async version only
* Test react.act and react.actasync
* Fix hola test :(
* Install melange-testing-library
* Install melange-testing-library npm deps
* Vendor melange-testing-library
* Fix Form__test with RTL
* Start migrating Hooks__test
* Remove dependency
* Remove unused code from Form__test
* Add a jest-devtoolsgs
* Add a jest-devtools
* Migrate Hooks and Form into RTL
* Add demo to manually test easily
* Use Uncurried for tests
* Migrate all React__test
* Force install since we are dealing with R19
* Snapshot with lower {}
* Enable ref in ppx
* Add jest test for ref
* Remove jest from demo/dune
* Add comment on install --force
* Improve test from checking ref
* Bind React.act and React.actAsync
* Bind React.act and React.actAsync
|
This PR is waiting to be merged for a release from react.js @ 19.1.0 with the fix required to work, currently pointed at |
* 'main' of github.com:/reasonml/reason-react: Documentation updates for 0.16 (#864)
|
React 19, here we go! |
CHANGES: * FEATURE: add color to domProps (@tatchi in reasonml/reason-react#871) * BREAKING: Support for React 19 (@davesnx in reasonml/reason-react#846) * DOCS: Documentation updates for 0.16 (@davesnx in reasonml/reason-react#864) * INFRA: Update deps (@johnhaley81 in reasonml/reason-react#876) * INFRA: update setup-ocaml to v3 (@anmonteiro in reasonml/reason-react#878) * FIX: Remove raise annotations and fix locations on errors (@davesnx reasonml/reason-react#863) * FIX: type of pipeable stream to allow objects with keys (@anmonteiro in reasonml/reason-react#854) * FEATURE: Add `preconnect`, `prefetchDNS`, `preinit`, `preinitModule`, `preload` and `preloadModule` in ReactDOM.Experimental (@r17x in reasonml/reason-react#849) * BREAKING: Make lowerbound be Melange 5.1 (due to Js.FormData.t usage)
This PR adds some of the new functions on React 19.
useActionStateIt relies on FormData and depends on melange.dom's PR (Add FormData under melange.dom melange-re/melange#1153, for passing the build and testing other stuff FormData is vendored which we won't publish with FormData here).useOptimisticExperimental.usetoExperimental.usePromiseand addExperimental.useContextactin react-dom/test-utils