You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
umi max 开启 keepalive 后,路由重定向会出现异常,会报错 Warning: Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.
What happens?
umi max 开启 keepalive 后,路由重定向会出现异常,会报错
Warning: Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.
Mini Showcase Repository(REQUIRED)
How To Reproduce
配置文件 配置的是
keepalive: [/./],
path: /system 设置了 redirect 跳转到 /system/menu-management,当我直接从地址栏输入 域名/system 回车时,页面就不能正常显示了,出现上面提到的报错,经过我不断的测试,发现是 keepalive 配置的问题 ,当我关闭掉 keepalive 时,就能正常直接访问 /system,进而自动跳转到 /system/menu-management, 但关闭 keepalive 后无法实现多 tabs 功能,当我照常开启 ,但 config.ts 文件配置
keepalive: ['/system/menu-management', '/system/internationalization'],
时,这时访问 /system 就一切正常了Context
The text was updated successfully, but these errors were encountered: