devTej – 15-10 Oct 8
I read react 18 documentation, that component will render twice for future features.
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
This feature will give React better performance out-of-the-box, but requires components to be resilient to effects being mounted and destroyed multiple timesas 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
