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.

Work in Strict Mode to avoid hitting a wall in upcoming React versions

See original GitHub issue

Do 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:

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:closed
  • Created 5 years ago
  • Reactions:8
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
justingrantcommented, Feb 7, 2020

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.

1reaction
justingrantcommented, Feb 7, 2020

FWIW, I’ve moved away from using react-big-calendar, partially for this reason.

Read more comments on GitHub >

github_iconTop 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 >

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