mirror of
https://github.com/wassname/talk.git
synced 2026-06-29 09:56:44 +08:00
fix: correctly cleanup timeout (#3081)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
+2
-2
@@ -1,5 +1,5 @@
|
||||
import { CoralRTE } from "@coralproject/rte";
|
||||
import { setLongTimeout } from "long-settimeout";
|
||||
import { clearLongTimeout, setLongTimeout } from "long-settimeout";
|
||||
import React, { Component } from "react";
|
||||
import { graphql } from "react-relay";
|
||||
|
||||
@@ -93,7 +93,7 @@ export class EditCommentFormContainer extends Component<Props, State> {
|
||||
}
|
||||
|
||||
public componentWillUnmount() {
|
||||
clearTimeout(this.expiredTimer);
|
||||
clearLongTimeout(this.expiredTimer);
|
||||
}
|
||||
|
||||
private updateWhenExpired() {
|
||||
|
||||
Reference in New Issue
Block a user