-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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 Legacy Context API #13676
Comments
@pungggi you've done a great job debugging where this issue occurs. Would you be interested in making this change? Context was introduced in React 16.3, and our minimum supported version of React is 16.4.2, so we can make this change. We'd love a PR! Thank you! |
@paschalidi that'd be great! A unit test validating the fix to go along with it would be 👌 as well. Let us know if we can help at all! |
@DSchau cool! Thanks for the quick response! Will open a PR the soonest! 👍 |
@pungggi hey 👋, thanks from my side as well for reporting this. What I have done is that I created a completely new This however will not give me the warning you are getting. Thanks! 🙇 |
hi @paschalidi you might need to import from reach-router |
Thanks! |
Hey @pungggi and @DSchau 👋 hope you both are doing fine and that you also having a good time! Hmmm, it looks to me that I still cant reproduce the Can please one of you clone it and run it locally and see if you can reproduce the same |
@paschalidi import React from "react"
export const wrapRootElement = ({ element }) => {
return (
<React.unstable_ConcurrentMode>{element}</React.unstable_ConcurrentMode>
)
} |
little bit busy the last days will work on that in the weekend. apologies |
Hiya! This issue has gone quiet. Spooky quiet. 👻 We get a lot of issues, so we currently close issues after 30 days of inactivity. It’s been at least 20 days since the last update here. If we missed this issue or if you want to keep it open, please reply here. You can also add the label "not stale" to keep this issue open! As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out gatsby.dev/contributefor more information about opening PRs, triaging issues, and contributing! Thanks for being a part of the Gatsby community! 💪💜 |
Hey again! It’s been 30 days since anything happened on this issue, so our friendly neighborhood robot (that’s me!) is going to close it. Please keep in mind that I’m only a robot, so if I’ve closed this issue in error, I’m As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out gatsby.dev/contribute for more information about opening PRs, triaging issues, and contributing! Thanks again for being part of the Gatsby community! |
Can we reopen this? |
@ericmasiello sure -- would you like to tackle the work required? It seems reasonably well scoped out! |
Summary
Running my App in React.StrictMode brings the following
Basic example
gatsby/packages/gatsby-react-router-scroll/src/ScrollBehaviorContext.js
Line 103 in 3cbaade
Motivation
Use the new Context API all over to try out Concurrent Mode now and to be prepared for React 17.
https://reactjs.org/docs/legacy-context.html
The text was updated successfully, but these errors were encountered: