Comments (8)
额...我自己没有用过这个功能,所以...
改天我研究一下 - -
如果你的业务比较着急,可以先尝试借助生命周期函数配合自定义样式控制来实现转场动画
from react-router-cache-route.
谢谢,这个功能值得兼容呀,对用户体验影响挺大的。我目前的项目暂时放置着,等大神整合后我再添加!
from react-router-cache-route.
重新写了一个库,react-activation,不依赖 router
的纯粹 <KeepAlive>
方案
from react-router-cache-route.
重新写了一个库,react-activation,不依赖
router
的纯粹<KeepAlive>
方案
大佬 是不是可以理解完全可以用 react-activation 代替 react-router-cache-route了?
from react-router-cache-route.
@calmchang 是的
from react-router-cache-route.
https://github.com/X-neuron/antdFront
https://zhuanlan.zhihu.com/p/354111579
纯react-router 6 + 原生组件的 方案,能支持动画,不知道 有没解决 keep-alive 的相关需求
from react-router-cache-route.
@calmchang 是的
大佬,以后这个库还维护吗?还是说只维护react-activation了
from react-router-cache-route.
@calmchang 是的
大佬,以后这个库还维护吗?还是说只维护react-activation了
这个库也会维护,但应该不会有大的迭代了,react-router 已经更新到 6+ 版本,这套方案只支持 6 以下的版本
from react-router-cache-route.
Related Issues (20)
- 用react 17 的ReactDOM.render(), 缓存成功, 但不支持react 18的版本 ReactDOM.createRoot() 缓存失败,请问有兼容方案? HOT 6
- 带参数详情页面多份数据缓存如何做? HOT 4
- 带有参数的页面,离开页面的时候useParams会返回undefined,导致无法维持原来的页面组件状态 HOT 3
- 请问下作者如何处理跳转路径完全相同,但是state不同的情况 HOT 2
- 路由里存在中文,路由会缓存2份
- 开启multiple后,带querystring的路由缓存失败
- 请问 在cache-route中如何实现仅在切换路由列表时卸载当前页面组件 谢谢 HOT 1
- `CacheSwitch` re-mount the same component if path changes HOT 1
- item/detail/:id 这种带参数的路由缓存不了,
- 在路由back后,怎么让缓存的组件不重新render呢? HOT 1
- 怎么实现头部Tabs页签的效果?能否提供一些示例? HOT 1
- How to turn off the display:none of the component HOT 5
- 使用CacheRoute缓存路由,出现闪烁
- 【咨询】为什么 Updatable 内部的 Freeze 需要 Delay 1s HOT 2
- CacheSwitch不会触发Suspense的fallback HOT 3
- iframe嵌套状态保留
- 打包部署后报错 HOT 3
- react18+ 安装该库提示报错,最终安装失败
- 切换路由时原页面与悬浮相关的内容都会重新悬浮一遍 HOT 1
- README链接失效 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-router-cache-route.