1
0
mirror of https://github.com/flarum/core.git synced 2025-10-11 06:54:26 +02:00

Clean up discussion list retaining mechanism

This commit is contained in:
Toby Zerner
2015-05-07 10:27:29 +09:30
parent 6b8dfdfb1c
commit 16c6bd4f23
5 changed files with 14 additions and 18 deletions

View File

@@ -22,7 +22,7 @@ export default class IndexPage extends Component {
var params = this.params();
if (app.cache.discussionList) {
app.cache.discussionList.willRedraw();
app.cache.discussionList.subtrees.map(subtree => subtree.invalidate());
Object.keys(params).some(key => {
if (app.cache.discussionList.props.params[key] !== params[key]) {
app.cache.discussionList = null;