Optimize rendering

This commit is contained in:
Fedor Indutny
2021-08-11 09:23:21 -07:00
committed by GitHub
parent 81f06e2404
commit 12c78c742f
34 changed files with 702 additions and 444 deletions

View File

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