keepalive-react-router is a route-level keepalive solution for react-router. It provides a way to cache the component instance when the route is switched, and reuse it when the route is switched back.