<Message> shouldn't be a PureComponent. It re-renders every time

This commit is contained in:
Evan Hahn 2021-04-26 16:12:48 -05:00 committed by Scott Nonnenberg
parent 013923d3c1
commit 86a01f289d

View file

@ -236,7 +236,7 @@ type State = {
const EXPIRATION_CHECK_MINIMUM = 2000;
const EXPIRED_DELAY = 600;
export class Message extends React.PureComponent<Props, State> {
export class Message extends React.Component<Props, State> {
public menuTriggerRef: Trigger | undefined;
public focusRef: React.RefObject<HTMLDivElement> = React.createRef();