Repository navigation
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:
|
Uh oh!
There was an error while loading. Please reload this page.
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 ____)
All reactions