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

fix(gatsby): fixes react-hot-reloader for new react features #13610

Merged
merged 2 commits into from
Apr 25, 2019

Conversation

wardpeet
Copy link
Contributor

Description

Fixes HMR for hooks & suspense features with react-🔥-dom. It uses the webpack loader to patch react-dom as react-dom is a peer dependency we can't force users to install @hot-loader/react-dom as mentioned in the README of react-hot-loader.

After:
image

Before:
image

It also actually fixes HMR for components using hooks 😛 not just remove the message.

Related Issues

#11934

@wardpeet wardpeet requested a review from a team as a code owner April 24, 2019 19:29
@wardpeet wardpeet changed the title Fix/react hot fix(gatsby): fixes react-hot-reloader for new react features Apr 24, 2019
Copy link
Contributor

@pieh pieh left a comment

Choose a reason for hiding this comment

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

dev runtime tests passed, so this LGTM!

@pieh pieh merged commit 213da5a into gatsbyjs:master Apr 25, 2019
@wardpeet wardpeet deleted the fix/react-hot branch April 25, 2019 19:59
@sidharthachatterjee
Copy link
Contributor

Published in gatsby@2.3.31

@tu4mo
Copy link

tu4mo commented Apr 26, 2019

Did this break dev mode in IE11? Getting 'Promise' is undefined error.

@hydrosquall
Copy link
Contributor

This may be related to a break in the npm run develop build stage with the Gatsby docs site: #13641

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.

5 participants