devTej🧑💻D
Reactiflux4y ago
2 replies
devTej🧑💻

devTej – 15-10 Oct 8

I read react 18 documentation, that component will render twice for future features.


This feature will give React better performance out-of-the-box, but requires components to be resilient to effects being mounted and destroyed multiple times


as per them when the user switches the tab and comes back it will persist the previous state,

My question is even if it persists the state, it will still run the useEffect which may make API calls and what is the use of unmounting and remounting the component in current release
Was this page helpful?