Open zcrkey opened 2 years ago
"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
"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