Skip to content

Commit

Permalink
Switched to correct lifecycle method.
Browse files Browse the repository at this point in the history
  • Loading branch information
radekmie committed Apr 7, 2021
1 parent 095177c commit 61ff883
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/uniforms/src/BaseForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,16 +84,16 @@ export class BaseForm<

componentDidMount() {
this.mounted = true;
if (this.delayId) {
clearTimeout(this.delayId);
}
}

// eslint-disable-next-line @typescript-eslint/no-unused-vars
componentDidUpdate(prevProps: Props, prevState: State, snapshot: never) {}

componentWillUnmount() {
this.mounted = false;
if (this.delayId) {
clearTimeout(this.delayId);
}
}

delayId?: any;
Expand Down

0 comments on commit 61ff883

Please sign in to comment.