Can react router switch routes without uninstalling components?

when routing is switched, different components are loaded and rendered according to different url. After loading the new component, the last component will be unloaded. Can you not unload the component, so you can switch back and display it directly. Each component needs to go to the background to request data, and each switch will go to the background. Of course, you can set the foreground cache to get the data locally, but is it possible not to uninstall the component?

Dec.15,2021
Menu