Yes, In React router v6.4 and above, the previous page is mounted untill the new page is loaded
for unmounting the previous page immediatly when routed to another page, you have to add a key of the new route location to force unmount
const location = useLocation();
<Outlet key={location.key} />