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

Upgrade react-hot-loader #4277

Merged
merged 1 commit into from
May 5, 2018

Conversation

timneutkens
Copy link
Member

@timneutkens timneutkens commented May 5, 2018

Fixes vercel/styled-jsx#425
Fixes #4246
Fixes #4273

Also adds an integration test for updating styles

@timneutkens timneutkens changed the base branch from master to canary May 5, 2018 11:48
Copy link
Contributor

@giuseppeg giuseppeg left a comment

Choose a reason for hiding this comment

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

lgtm

some people reported that they got this error even without fragments vercel/styled-jsx#425 (comment) Maybe you can add another component inside of hrm/style.js that doesn't use fragments and render it inside of the default exported one?

writeFileSync(pagePath, editedContent, 'utf8')

// wait for 5 seconds
await waitFor(5000)
Copy link
Contributor

Choose a reason for hiding this comment

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

This could be flaky or add a unnecessary delay, maybe you can make a retry function with timeout? could be done in a separate PR

Copy link
Member Author

Choose a reason for hiding this comment

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

Going to merge this now, I basically copied an existing test, we could definitely improve this 👍

@timneutkens timneutkens merged commit 2200508 into vercel:canary May 5, 2018
@timneutkens timneutkens deleted the fix/rhl-4-1-2-upgrade branch May 5, 2018 12:34
lependu pushed a commit to lependu/next.js that referenced this pull request Jun 19, 2018
@lock lock bot locked as resolved and limited conversation to collaborators May 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants