Giter Club home page Giter Club logo

Comments (21)

xiaohuoni avatar xiaohuoni commented on September 13, 2024

keepalive:['/list','/xxx']

from alita.

xiaohuoni avatar xiaohuoni commented on September 13, 2024

写在配置中的会被保留,只能手动触发解除。

from alita.

xiaohuoni avatar xiaohuoni commented on September 13, 2024

使用之前,或者更新 umi 之后,都需要手动执行 umi keepalive 进行初始化

from alita.

wangyinwei1 avatar wangyinwei1 commented on September 13, 2024

什么时候能合并啊,现在急需keepalive

from alita.

xiaohuoni avatar xiaohuoni commented on September 13, 2024

@wangyinwei1 你用alita的话,现在已经具备了keep alive的能力了。

from alita.

xiaohuoni avatar xiaohuoni commented on September 13, 2024

image
image
请问我这个是哪配置错了吗?安装你上面的步骤配置的,但是启动报错了

from alita.

xiaohuoni avatar xiaohuoni commented on September 13, 2024

@wangyinwei1 在这里讨论把

from alita.

xiaohuoni avatar xiaohuoni commented on September 13, 2024

不是执行yarn init 是执行yarn run init (umi keepalive)

from alita.

wangyinwei1 avatar wangyinwei1 commented on September 13, 2024

que
嵌套路由之间的切换缓存不了数据,同级切换可以缓存,这个是什么原因@xiaohuoni

from alita.

CJY0208 avatar CJY0208 commented on September 13, 2024

估计是嵌套路由的链路没有全部是 CacheRoute ...

这个 issues 有提到,umi 里路由不可控,估计比较难搞了

from alita.

xiaohuoni avatar xiaohuoni commented on September 13, 2024

嵌套路由内部跳转可以,跳转到其他路由,不行。
讨论一下

from alita.

dennis-leee avatar dennis-leee commented on September 13, 2024

根据readme使用里面的方法配置约定式路由时不生效,配置式路由时报错

×  error     Plugin user:node_modules/umi-plugin-cache-route/lib/index.js initialize failed

Cannot read property 'keepalive' of undefined

最终结合两种方案一起才生效..

from alita.

rule78 avatar rule78 commented on September 13, 2024

现在umi项目 还不能使用对吧 Cannot read property 'keepalive' of undefined

from alita.

xiaohuoni avatar xiaohuoni commented on September 13, 2024

哦,可以使用的,就是嵌套路由互相跳转不生效,正在处理。
使用方法你要安装umi-plugin-cache-route

from alita.

wangyinwei1 avatar wangyinwei1 commented on September 13, 2024

嵌套路由互相跳转不生效,这个修改好了吗?

from alita.

xiaohuoni avatar xiaohuoni commented on September 13, 2024

还没有

from alita.

wangyinwei1 avatar wangyinwei1 commented on September 13, 2024

嵌套路由互相跳转不生效,请问是有技术困难?会准备搁置吗?还是在计划中?

from alita.

CJY0208 avatar CJY0208 commented on September 13, 2024

嵌套路由互相跳转不生效,请问是有技术困难?会准备搁置吗?还是在计划中?

目前项目比较忙,还未进行方案讨论,技术上的预想有一定难度

处于计划中,不会搁置

from alita.

xiaohuoni avatar xiaohuoni commented on September 13, 2024

#57
alita 项目直接更新到 1.3.0
umi 项目更新 [email protected]
增加命令用于撤销文件

alita keepalive --backups=true

自动处理了嵌套路由和动态路由

from alita.

xiaohuoni avatar xiaohuoni commented on September 13, 2024

太长了,还有问题的话,另开issues吧

from alita.

wangyinwei1 avatar wangyinwei1 commented on September 13, 2024

#64 [email protected] 会有一个报错警告。是什么原因。@xiaohuoni

from alita.

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.