react-router-cache-route icon indicating copy to clipboard operation
react-router-cache-route copied to clipboard

Route with cache for react-router V5 like <keep-alive /> in Vue

Results 37 react-router-cache-route issues
Sort by recently updated
recently updated
newest added

大佬,使用CacheSwitch包住路由不能触发Suspense的fallback ``` {routes.map(({ path, ...props }: RouteProps) => ( ))} {cacheRoutes.map(({ path, ...props }: CacheRouteProps) => ( ))} ```

使用CacheRoute缓存路由,出现闪烁

In `Switch`, the component will not be re-mounted even if the path changed. Here's a demo to reproduce. https://stackblitz.com/edit/vitejs-vite-4923pg?file=src/App.tsx - Type something in the input, click `Go` button, then the...

1、路由配置的是 /list/detail 2、开启multiple 3、/list/detail?id=123这种带参数的路由不缓存 求解。。。

![image](https://user-images.githubusercontent.com/13042642/199905688-fb286746-d6e4-4a44-a979-1042f152f3c2.png)

react: 18.2.0 antd: 5.10.1 react-router-cache-route: 1.12.11 复现情况请看附件,感谢🙏 https://github.com/CJY0208/react-router-cache-route/assets/43603415/756f060f-0da0-4f8a-9deb-781624564197

安装依赖提示报错: $ npm install react-router-cache-route --save npm WARN deprecated [email protected]: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. npm WARN [email protected] requires a peer of react@^0.14.0 ||...