CJY0208 / react-router-cache-route

Route with cache for react-router V5 like <keep-alive /> in Vue
https://www.npmjs.com/package/react-router-cache-route
MIT License
1.14k stars 110 forks source link

使用 window.location.replace 重新定地址后,缓存就不起作用了 #125

Closed WuYunRen closed 2 years ago

CJY0208 commented 2 years ago

如果应用发生了 reload行为,缓存会失效,目前的缓存仅存在与内存中

CJY0208 commented 2 years ago

可能需要使用 react-router 提供的 history.replace