react-router-cache-route
react-router-cache-route copied to clipboard
Route with cache for react-router V5 like <keep-alive /> in Vue
大佬,使用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这种带参数的路由不缓存 求解。。。

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 ||...

路由动态参数的场景,如:'/a/b/:xxx',页面同时打开多个的话,因为永远匹配不到这个路由,所以清除某个具体的页面/a/b/123这种,缓存清不掉,请问怎么处理?  
Remove deprecated defaultProps construct for CacheSwitch component. Instead move it to render function in spread default values.