Work in Strict Mode to avoid hitting a wall in upcoming React versions
See original GitHub issueDo you want to request a feature or report a bug?
It’s a feature of sorts, more like making sure we can still use this by the end of 2019…
What’s the current behavior?
Rendering a calendar inside React’s <StrictMode>
wrappers yields a ton of deprecation / unsafe pattern warnings in the console:
- Deprecated
findDOMNode()
usage (the modern Refs API should be used instead) - Unsafe lifecyle methods (typically
componentWillMount()
andcomponentWillUpdate()
)
What’s the expected behavior?
The codebase should try and move to the newer, cleaner, safer accepted ways to achieve the same results, in order not to find itself stonewalled when some upcoming React 16.x version finally strips these, some of which have long been deprecated.
My OSS/PR queue is already quite full for the next few weeks but I might try and give it a go around late Feb / March if the regular maintainers can’t.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:8
- Comments:9 (1 by maintainers)
Top Results From Across the Web
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 >Using strict mode in React 18: A guide to its new behaviors
Strict mode is trying to be future-ready with React's suspense-based architecture, making it more resilient for introspecting UI issues. Let's ...
Read more >javascript - React.StrictMode seems to work differently in ...
React.StrictMode seems to work differently in different React version (18.1.0 vs 17.0.1) ; import React · from "react" ; import "../style/App.css" ...
Read more >React 18 (RC 0) StrictMode rendering breaks ability to find ...
With the release of React 18, StrictMode gets an additional behavior that we call “strict effects” mode. When strict effects are enabled, React...
Read more >Wait, you're not using <React.StrictMode>?! - Medium
All you need to do in order to enable StrictMode (from version 16.3) is to wrap the part you want in your app...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @avindra - Nope, I ended up rolling my own plain-JSX solution. My own implementation is limited and lacks most RBC features, but my app has pretty limited needs so it’s good enough for now. I may consider switching back to RBC later but for now I’ve moved on.
FWIW, I’ve moved away from using react-big-calendar, partially for this reason.