Giter Club home page Giter Club logo

Comments (3)

GoodLuckAlien avatar GoodLuckAlien commented on July 25, 2024

请问可以给一个完成的可以跑起来的示例吗?你这个 KeepAliveRoute 缓存的是真实的 DOM,按照 README 里面的 gif,切换回去数字还是 8,如果在点击 add,这个数字会是 1 还是 9?

您好,首先回答问题,肯定是9,功能主要是让整个fiber树存活,包括状态 ,稍后我会写几个应用场景的demo,上传到项目的example文件夹下面(目前还没有),非常感谢您的宝贵建议。

from react-keepalive-router.

GoodLuckAlien avatar GoodLuckAlien commented on July 25, 2024

请问可以给一个完成的可以跑起来的示例吗?你这个 KeepAliveRoute 缓存的是真实的 DOM,按照 README 里面的 gif,切换回去数字还是 8,如果在点击 add,这个数字会是 1 还是 9?

react-keepalive-router 发布1.1.2版本
更改如下:
1 增加页面生命周期 激活状态actived钩子 缓存状态钩子unActived

2 支持缓存scroll滚动条位置。

3 keepaliveRoute,UNSAFE_componentWillReceiveProps 代替 componentWillReceiveProps

4 提供了完整的demo项目。example文件夹下。

详情参考: https://github.com/GoodLuckAlien/react-keepalive-router

from react-keepalive-router.

Aurora567 avatar Aurora567 commented on July 25, 2024

demo跑不起来

from react-keepalive-router.

Related Issues (17)

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.