We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
window.location.href这种跳转,返回还能缓存吗? 跳转之后返回是不是不应该触发componentDidMount?但是每次都触发了这个生命周期,
The text was updated successfully, but these errors were encountered:
window.location.href这种跳转,返回能保存状态吗? 还是说只能在组件之间跳转的时候保存状态 ?
Sorry, something went wrong.
#5 可以在这里得到答案,希望提出一些改善建议😄
是的只能在组件之间跳转时使用,window.location.href 跳转相当于刷新页面,可以看这篇文章 ShenChang618/Blog#3
No branches or pull requests
window.location.href这种跳转,返回还能缓存吗?
跳转之后返回是不是不应该触发componentDidMount?但是每次都触发了这个生命周期,
The text was updated successfully, but these errors were encountered: