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
帖子列表的翻页状态应该响应location变化。
/board/515/2
3
/board/515/3
Body组件未实现生命周期函数componentDidUpdate。
componentDidUpdate
实现生命周期函数componentDidUpdate,判断url变化,相应地更新数据。
The text was updated successfully, but these errors were encountered:
前辈可以尝试自己改下,帮忙提个PR.
我这边之后跟进一下
已提PR
Sorry, something went wrong.
No branches or pull requests
帖子列表的翻页状态应该响应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: