question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Remove all warnings in <StrictMode>

See original GitHub issue

RR4 beta still fails <StrictMode> because it uses the legacy context API. We should consider moving to create-react-context to prepare for future React releases.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
kafeincommented, Oct 12, 2018

@mjackson What about legacy context api? If possible please remove old context stuff. If you have a time please look issue #6348, I think its related to legacy context.

0reactions
mjacksoncommented, Oct 13, 2018

Hey @jaredpalmer, I decided to just go ahead and run all of our tests in <StrictMode> to make sure we weren’t triggering warnings anywhere, and we’re good now on master. I’m going to cut another beta today. Please let me know how it goes!

Read more comments on GitHub >

github_iconTop Results From Across the Web

remix-run/react-router - Remove all warnings in <StrictMode>
<StrictMode> will print warnings, but everything should run just fine on current React master. We're not actually using the old context API ...
Read more >
How can I solve strict mode warning without removing strict ...
Even I used useRef, still it is showing this warning. So can I fix it without removing <React.StrictMode></React.StrictMode> in index file
Read more >
Strict Mode - React
StrictMode is a tool for highlighting potential problems in an application. Like Fragment , StrictMode does not render any visible UI. It activates...
Read more >
Wait, you're not using <React.StrictMode>?! - Medium
In this post I'll cover all the warnings produced when using StrictMode , how they are related to Concurrent React and what actually...
Read more >
What is StrictMode in React? - KnowledgeHut
StrictMode, developers can identify potential problems in their applications. It enables predefined checks in dev mode & provides warnings ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found