Replies: 1 comment 1 reply
-
Thanks for asking! It’s a bit nuanced.
In practice, even when these bugs may happen, they not necessarily will. As you can imagine few components are “perfect” and in practice even in completely synchronous React there’s a lot of potential for mistakes in components. What we’ve found in practice is that mistakes related to concurrency don’t come up more often than mistakes in product code in general. We haven’t seen any significant increase in bugs after fixing a few libraries and infrastructure-level code. The product code, even when not written with StrictMode, mostly “just works”. In fact we’ve had an embarrassing mishap where double rendering was accidentally off for FB engineers for many months, so it was as if they wrote code without Strict Mode. But it mostly worked fine too. To summarize:
|
Beta Was this translation helpful? Give feedback.
-
In #4 (reply in thread), it is mentioned that
In the past, my assumption was that we would have to be StrictMode compliant in order to use concurrent features (mostly based on a combination of reading these two: https://reactjs.org/docs/strict-mode.html and https://reactjs.org/docs/concurrent-mode-adoption.html#feature-comparison).
I was wondering if we could get more clarity around this point and, specifically, which deprecations/warnings are important for adopting concurrent features. From a migration standpoint, I think this would be helpful to understand so developers can prioritize work to fix StrictMode violations (i.e. do we need to remove 100% of findDOMNode usages before we can use concurrent feature ____)
Beta Was this translation helpful? Give feedback.
All reactions