Skip to content

Demonstrate fix by updating to PR version of React#1

Draft
acdlite wants to merge 1 commit intobvaughn:mainfrom
acdlite:demonstrate-bugfix
Draft

Demonstrate fix by updating to PR version of React#1
acdlite wants to merge 1 commit intobvaughn:mainfrom
acdlite:demonstrate-bugfix

Conversation

@acdlite
Copy link
Copy Markdown

@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.
Comment thread package.json
"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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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