Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

不能和 TransitionGroup 等动画组件一起使用实现页面转场动画 #30

Open
wangwu199190 opened this issue May 16, 2019 · 8 comments
Labels
enhancement New feature or request

Comments

@wangwu199190
Copy link

大神你这缓存组件不能和 TransitionGroup 等动画组件一起使用实现页面转场动画哇?

@wangwu199190 wangwu199190 changed the title 试验了很多页面转场组件都不能用 不能和 TransitionGroup 等动画组件一起使用实现页面转场动画 May 16, 2019
@CJY0208
Copy link
Owner

CJY0208 commented May 16, 2019

额...我自己没有用过这个功能,所以...

改天我研究一下 - -

如果你的业务比较着急,可以先尝试借助生命周期函数配合自定义样式控制来实现转场动画

@CJY0208 CJY0208 added the enhancement New feature or request label May 16, 2019
@wangwu199190
Copy link
Author

谢谢,这个功能值得兼容呀,对用户体验影响挺大的。我目前的项目暂时放置着,等大神整合后我再添加!

@CJY0208
Copy link
Owner

CJY0208 commented Sep 25, 2019

@wangwu199190

重新写了一个库,react-activation,不依赖 router 的纯粹 <KeepAlive> 方案

可以解决转场动画问题,参考文档在线示例

@CJY0208 CJY0208 pinned this issue Dec 5, 2019
@calmchang
Copy link

@wangwu199190

重新写了一个库,react-activation,不依赖 router 的纯粹 <KeepAlive> 方案

可以解决转场动画问题,参考文档在线示例

大佬 是不是可以理解完全可以用 react-activation 代替 react-router-cache-route了?

@CJY0208
Copy link
Owner

CJY0208 commented Dec 1, 2020

@calmchang 是的

@X-neuron
Copy link

X-neuron commented Jul 3, 2021

https://github.com/X-neuron/antdFront
https://zhuanlan.zhihu.com/p/354111579
纯react-router 6 + 原生组件的 方案,能支持动画,不知道 有没解决 keep-alive 的相关需求

@hengyanqwe
Copy link

@calmchang 是的

大佬,以后这个库还维护吗?还是说只维护react-activation了

@CJY0208
Copy link
Owner

CJY0208 commented Mar 31, 2023

@calmchang 是的

大佬,以后这个库还维护吗?还是说只维护react-activation了

这个库也会维护,但应该不会有大的迭代了,react-router 已经更新到 6+ 版本,这套方案只支持 6 以下的版本

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants