mirror of
https://github.com/element-hq/element-web
synced 2024-11-23 09:46:09 +03:00
Clarify ReactionsRow
forceUpdate usage
This commit is contained in:
parent
af9fdbaeeb
commit
e22bd45608
1 changed files with 3 additions and 0 deletions
|
@ -68,6 +68,9 @@ export default class ReactionsRow extends React.PureComponent {
|
|||
this.setState({
|
||||
myReactions: this.getMyReactions(),
|
||||
});
|
||||
// Using `forceUpdate` for the moment, since we know the overall set of reactions
|
||||
// has changed (this is triggered by events for that purpose only) and
|
||||
// `PureComponent`s shallow state / props compare would otherwise filter this out.
|
||||
this.forceUpdate();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue