React class components not rendering with <React.StrictMode> #3393
-
Hi guys, I was wondering whether any of you experienced any issue with class-based React components and MobX when the There is a very basic MobX observable store and the following function which triggers the window.setTimeout(() => {
store.enableService().then();
}, 1500); The strange thing is that while functional components get updated as expected (the first "service is enabled string) the class-based one is not (the green one): However, by removing the // Doesn't work
root.render(
<StrictMode>
<App />
</StrictMode>
);
// Works
root.render(
<App />
); The same code was working without problems in older version of React even with the Is it possible there is any bug or it's just me missing something obvious? Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Possibly relates to
Source: https://github.com/facebook/react/blob/main/CHANGELOG.md#react-1 |
Beta Was this translation helpful? Give feedback.
Possibly relates to
Source: https://github.com/facebook/react/blob/main/CHANGELOG.md#react-1