react-router-cache-route icon indicating copy to clipboard operation
react-router-cache-route copied to clipboard

CacheRoute 的when属性设置为 forward 无效

Open zcrkey opened this issue 3 years ago • 0 comments

"react": "^17.0.2", "react-dom": "^17.0.2", "react-router-cache-route": "^1.12.1", "react-router-dom": "5.3.0", "react-scripts": "^4.0.3",

设置 when为forward时,不会触发 componentDidCache 和 componentDidRecover 而设置when为back或者为always时,则会触发 componentDidCache 和 componentDidRecover

zcrkey avatar Dec 17 '21 08:12 zcrkey