You've already forked matrix-react-sdk
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:
@@ -68,6 +68,9 @@ export default class ReactionsRow extends React.PureComponent {
|
|||||||
this.setState({
|
this.setState({
|
||||||
myReactions: this.getMyReactions(),
|
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();
|
this.forceUpdate();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user