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

experiment: test React 19 with v8 #3239

Closed
wants to merge 5 commits into from

Conversation

CodyJasonBennett
Copy link
Member

Mirrors #3224 against v8 for upstream integration testing. These changes will land in the v9 release.

Copy link

codesandbox-ci bot commented Apr 23, 2024

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 16e4285:

Sandbox Source
example Configuration

finalizeInitialChildren(instance) {
const localState = instance?.__r3f ?? {}
// https://github.com/facebook/react/issues/20271
// Returning true will trigger commitMount
return Boolean(localState.handlers)
},
prepareUpdate(instance, _type, oldProps, newProps) {
const localState = instance?.__r3f ?? {}
commitUpdate(instance, _diff, type, oldProps, newProps, fiber) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll check if we shouldn't change the signature of commitUpdate to commitUpdate(instance, type, oldProps, newProps, fiber) now. That may have helped recognizing earlier that _diff is always null now.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Signature will have changed in the Beta release of the reconciler: facebook/react#28909

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably also helpful to diff packages/react-reconciler/README.md for the versions you're changing. We updated the readme so there might be other signature changes that were missed.

@CodyJasonBennett
Copy link
Member Author

Thanks. Continuing in #3224 against v9 in alpha until we solidify our API over the next week.

@CodyJasonBennett CodyJasonBennett deleted the experiment/test-19-v8 branch April 25, 2024 20:14
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 this pull request may close these issues.

None yet

2 participants