-
Notifications
You must be signed in to change notification settings - Fork 43
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 18 #46
React 18 #46
Conversation
maybe somebody have any updates about timeline for merging this PR? |
I think these changes would be good land as a stacked diff on top of #35 (ie. after it's been merged) @rickyvetter what do you think? |
@tom-sherman I'll rebase and force push whenever #35 is merged, as well as, mark it ready for review. |
I marked this ready for review for my last 2 commits. This will eventually be rebased once #35 is merged. |
@whitchapman @tom-sherman Thank you for your work and sorry for the very long delay. I am currently trying to clean up the repo and to move the pull requests forward. Would it be possible to have a single React 18 PR (either this one or #35) rebased on master for review? And the other one to be closed? |
Absolutely, whatever is easier. I forked @tom-sherman 's repo, so would it be better for me to cherry pick |
Sounds good! |
Ok, I force pushed with all 5 commits -- I think I did it correctly; although, there are conflicts. |
@tom-sherman Since my fork is from your fork of the original repo, I think you need to sync your fork first before I can sync mine -- how did this get to be so complicated!? |
@whitchapman Couldn't you just rebase on the lastest master (d5d9168) and force push? |
My fork doesn't have that commit since Tom's fork doesn't have that commit. I would need to refork directly from rescript-lang and open a new PR -- definitely doable. I'll give it a go. |
IMHO it shouldn't matter if your fork has that commit, you should be able to add the rescript-lang/rescript-react repo as a remote in your locally checked out project dir and perform a fetch, then you should have that commit locally and be able to rebase on it. |
Ok, @cknitt I did what you suggested which resulted in modifying the PR to remove the test changes since the |
I think that's fine if the tests have been removed in the meantime. CI is still failing, you need to make some small adjustments in the V3 compatibility modules to fit the changes. |
Yes, my changes are as expected. It has been several months since I last looked at this, and I'm not familiar with the V3 changes. Is there a resource for the V3 changes? I can look at this later today. |
Looking at the CI errors, I think it's just about adapting to these changes:
|
Sorry!!! Looking again at the discussion in the original PR (#35 (comment)) and also at the TypeScript typedefs for external useTransition: unit => (bool, (. unit => unit) => unit) = "useTransition" is actually correct. Let's change it to this in both the I think then we are done. 🎉
|
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.
Looks good to me! 🎉
@tom-sherman Anything to add from your part?
Ok, merging now. In case anything is still missing or incorrect we'll address it in separate PRs. |
Closes #34
Per @tom-sherman's instructions, I forked his
react-18
branch and added a couple of commits. I attempted to mirror the React 18.1 documentation:createRoot
,hydrateRoot
, andRoot
moduleI'm happy to modify as needed and do any additional work to close #34, but I'm pretty new to ReScript (background in Clojure and OCaml) so please advise on the following:
node test/React__test.bs.js
did not workClient
module is my attempt to mirror React 18.1 but may not be the proper way to do things in ReScript