-
-
Notifications
You must be signed in to change notification settings - Fork 10.4k
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
Remove all warnings in <StrictMode> #6385
Comments
We actually are using If it's going to be a show-stopper, we can just remove the old context code. But I was hoping to ship 4.4 with both and then just print a bunch of warnings if you access the old stuff. Another option might be to only run that code if we're running an older build of React... if (!React.createContext) {
Route.childContextTypes = ...
} |
AFAICT it is a showstopper off of React master at the moment |
|
Going to cherry-pick the |
I closed this prematurely. Will keep looking into it. |
So, I'm trying to trigger the Here's the test for the warning message I'm trying to trigger in React core: https://github.com/facebook/react/blob/4773fdf7cdf5d6d775ad0960f23ee1a830e7b82b/packages/react/src/__tests__/ReactStrictMode-test.internal.js#L819-L911 And here's the code I'm using to try to cause that warning to fire: https://codesandbox.io/s/k265vz8z8v I've checked to make sure that |
Hey @jaredpalmer, I decided to just go ahead and run all of our tests in |
RR4 beta still fails
<StrictMode>
because it uses the legacy context API. We should consider moving tocreate-react-context
to prepare for future React releases.The text was updated successfully, but these errors were encountered: