1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-07 10:46:24 +03:00

Clarify ReactionsRow forceUpdate usage

This commit is contained in:
J. Ryan Stinnett
2019-05-13 15:00:43 +01:00
parent af9fdbaeeb
commit e22bd45608

View File

@@ -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();
}