Rychen Wong
Rychen Wong
你可以把iframe转移到其他地方,需要显示的时候再挂回来。
I am planning to add a cache auto-expire feature ```tsx function Layout(){ return ( {/*....*/} ) } ``` ```tsx function Layout(){ return ( {/*....*/} ) } ```
> Any plan to support react-router v7? Yes, I am actively working on adding support for React Router v7 and plan to release it soon.
> Would you please make `activeCacheKey` optional instead of omit? > > > > ```ts > > export interface KeepAliveRouteOutletProps extends Omit > > ``` > > > > In...
> > keepalive should be used on top level once and subpages' layout use `Outlet` imported from react-router-dom > > > > Then I have 2 questions: > > 1....
> > They are cached together and have holistic transition > > Well, that's excatly my problem. The parent route should not be flickering with the child route. > >...
> 您好,请问未来会考虑“记住滚动条位置”这个功能吗? > > > How to restore the scrollbar to its previous position #17 > > 未保存滚动条位置,如果table有虚拟滚动的话,会导致数据空白 #12 > > issues17和issues12,我都看了。对于简单页面或者只有一个滚动条的页面,上述方法确实可用。 > > 我的项目里,页面比较多,也比较复杂。单个页面里可能有2个、3个、甚至多个滚动条。如果每个有滚动条的地方都用MemoScrollTopWrapper包裹一层的话,项目的代码改动量会很大。 如果keepalive-for-react本身支持记住滚动条位置,我项目里的子页面就无需改动,只改路由和顶层的几个根组件即可。 > > 所以我想问一下,keepalive-for-react,未来会考虑增加“记住滚动条位置”这个功能吗? 用hook侵入性比较小一点、推荐使用hook。至于缓存住所有滚动条,这个问题暂时还没思路
想把基于react context参数传递的方式换掉,有没有什么好的想法,目前感觉context有点浪费性能
> 可以考虑兼容umi4吗?开启qiankun加载子应用无法正常工作 你可以选择组件内部缓存,不使用基于路由的方式,路由级别缓存嘛umi4多多少少有点问题
fix by ```bash sudo chown username:staff /Users/username/.zshrc ```