Code Monkey home page Code Monkey logo

Comments (8)

CJY0208 avatar CJY0208 commented on September 27, 2024

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

改天我研究一下 - -

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

from react-router-cache-route.

wangwu199190 avatar wangwu199190 commented on September 27, 2024

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

from react-router-cache-route.

CJY0208 avatar CJY0208 commented on September 27, 2024

@wangwu199190

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

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

from react-router-cache-route.

calmchang avatar calmchang commented on September 27, 2024

@wangwu199190

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

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

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

from react-router-cache-route.

CJY0208 avatar CJY0208 commented on September 27, 2024

@calmchang 是的

from react-router-cache-route.

X-neuron avatar X-neuron commented on September 27, 2024

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

from react-router-cache-route.

hengyanqwe avatar hengyanqwe commented on September 27, 2024

@calmchang 是的

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

from react-router-cache-route.

CJY0208 avatar CJY0208 commented on September 27, 2024

@calmchang 是的

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

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

from react-router-cache-route.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.