{"library":"react-router-cache-route","type":"library","category":null,"description":"A React component that provides Vue-like keep-alive caching for react-router v4+ routes. Version 1.13.0 is the latest stable release; the package is maintained sporadically with low release cadence. It uses a `CacheRoute` wrapper that hides instead of unmounts the component when the route becomes unmatched, preserving component state and DOM. It also provides a `CacheSwitch` to replace `Switch` for proper caching behavior. Alternatives include `react-activation` for a standalone `<KeepAlive>` component.","language":"javascript","status":"active","version":"1.13.0","tags":["javascript","cache","cache route","react","react router","keep alive","keep alive route"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install react-router-cache-route","imports":["import CacheRoute from 'react-router-cache-route'","import { CacheSwitch } from 'react-router-cache-route'","import { useCacheRoute } from 'react-router-cache-route'","import { Route } from 'react-router-dom'"]},{"cmd":"yarn add react-router-cache-route","imports":[]},{"cmd":"pnpm add react-router-cache-route","imports":[]}],"homepage":"https://github.com/CJY0208/react-router-cache-route","github":"https://github.com/CJY0208/react-router-cache-route","docs":null,"changelog":null,"pypi":null,"npm":"react-router-cache-route","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}