Releases: CJY0208/react-router-cache-route
Releases · CJY0208/react-router-cache-route
v1.13.0
feat: add autoFreeze prop
v1.11.0
- feat: add lifecycle hooks
useDidCache
and useDidRecover
v1.10.0
- #89 feat: add refreshByCacheKey method to support refreshing a route by key @xwinstone
v1.9.2
- 修复 multiple 模式下兼容 search 后 key 值重复的问题
v1.9.1
- 修复 multiple 模式下不兼容 search 参数的问题
1.9.0
- [兼容] react-router-dom v5.2.0
- [拓展] cacheKey 允许传递 function 类型
<CacheRoute path="/item/:id" cacheKey={props => `Item_${props.match.params.id}`} />
Change Log
- 修复 cacheKey 中包含 . 时 dropByCacheKey 不生效的问题
Change Log
- 修复 #53,#54;
- 文档新增 CacheSwitch which 属性说明;
- 文档修正对 multiple 功能的版本需求说明
Change Log
- 修复 .d.ts 对 CacheRoute.when 及 CacheSwitch 的类型定义错误