mirror of
https://github.com/flarum/framework.git
synced 2024-12-12 06:03:39 +08:00
PERF: fix subtrees never being retained if "mark all as read" was clicked
I didn't realise, performance was terrible for people who have ever clicked the "mark all as read" button!
This commit is contained in:
parent
bda1a66abb
commit
b5ba21c9a6
|
@ -35,7 +35,7 @@ export default class DiscussionListItem extends Component {
|
||||||
*/
|
*/
|
||||||
this.subtree = new SubtreeRetainer(
|
this.subtree = new SubtreeRetainer(
|
||||||
() => this.props.discussion.freshness,
|
() => this.props.discussion.freshness,
|
||||||
() => app.session.user && app.session.user.readTime(),
|
() => app.session.user && app.session.user.readTime().getTime(),
|
||||||
() => this.active()
|
() => this.active()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user