-
Notifications
You must be signed in to change notification settings - Fork 799
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
React Context breaks app #1184
Comments
Ran into the same issue. Removing |
My bad. Trying to "register" "Provider.Provider" |
I also encountered the same problem, if i remove react-hot-loader/babel,i can't use this hot again,how to solve?
|
I'll push update today. It's a one-line change. |
thanks,looking forward to |
47.1 released |
@theKashey I still got this error on my end with v4.7.1
because I had context which destruct a consumer like this |
The patch is already here - #1190, just finishing something prior... |
Description
If you assign a provider to a variable, the app breaks with
Invalid value used as weak map key
:see codesandbox: https://codesandbox.io/s/5yr558ky0x
removing the line
const Prov = Ctx.Provider;
insrc/App.js
or""react-hot-loader/babel"
in.babelrc
resolves the issue.Environment
React Hot Loader version: 4.7.0
Reproducible Demo
https://codesandbox.io/s/5yr558ky0x
The text was updated successfully, but these errors were encountered: