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

Demonstrate fix by updating to PR version of React #1

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

acdlite
Copy link

@acdlite acdlite commented Mar 6, 2023

Not for merge.

Updated package.json to point react and react-dom to PR that includes a bugfix: facebook/react#26317

Now when you run the tests, the second test no longer hangs.

Not for merge.

Updated package.json to point `react` and `react-dom` to PR that includes
a bugfix: facebook/react#26317

Now when you run the tests, the second test no longer hangs.
"react": "^18.3.0-next-b72ed698f-20230303",
"react-dom": "^18.3.0-next-b72ed698f-20230303",
"react": "https://react-builds.vercel.app/api/prs/26317/packages/react",
"react-dom": "https://react-builds.vercel.app/api/prs/26317/packages/react-dom",
Copy link
Owner

Choose a reason for hiding this comment

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

That's a neat trick. Doesn't seem to work with npm install though. Guess it's a Yarn specific thing?

Sure enough though, this version does fix the bug report I shared!

Going to play with it more now to see if it also fixes the original thing I was wrestling with!

Copy link
Author

@acdlite acdlite Mar 6, 2023

Choose a reason for hiding this comment

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

I think it works if you do yarn add react@https://react-builds.vercel.app/api/prs/26317/packages/react. If you do the URL by itself it gets confused.

Copy link
Owner

Choose a reason for hiding this comment

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

Yup! It works with Yarn. I was just using NPM by itself and noticed the install failed.

Copy link
Author

Choose a reason for hiding this comment

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

I'll go ahead and publish an actual @experimental release once CI finishes, too.

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.

2 participants