Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CacheRoute 的when属性设置为 forward 无效 #137

Open
zcrkey opened this issue Dec 17, 2021 · 0 comments
Open

CacheRoute 的when属性设置为 forward 无效 #137

zcrkey opened this issue Dec 17, 2021 · 0 comments

Comments

@zcrkey
Copy link

zcrkey commented Dec 17, 2021

"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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant