-
Notifications
You must be signed in to change notification settings - Fork 29
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
帖子列表未响应浏览器后退 #55
Comments
前辈可以尝试自己改下,帮忙提个PR. 我这边之后跟进一下 已提PR |
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
帖子列表的翻页状态应该响应location变化。
环境
复现步骤
/board/515/2
。此时帖子列表显示该版面第2页的内容3
,跳转到第3页。此时url为/board/515/3
,帖子列表显示该版面第3页的内容/board/515/2
,此时帖子列表仍然显示该版面第3页的内容期望的行为
/board/515/2
,此时帖子列表显示该版面第2页的内容可能的问题源
Body组件未实现生命周期函数
componentDidUpdate
。可能的解决方案
实现生命周期函数
componentDidUpdate
,判断url变化,相应地更新数据。The text was updated successfully, but these errors were encountered: