From 459e11a5fadb4bfef4b4eabef2685904096cd8e8 Mon Sep 17 00:00:00 2001 From: Vinh Date: Thu, 6 Aug 2020 01:32:14 +0200 Subject: [PATCH] fix: correctly cleanup timeout (#3081) Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> --- .../Comment/EditCommentForm/EditCommentFormContainer.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/client/stream/tabs/Comments/Comment/EditCommentForm/EditCommentFormContainer.tsx b/src/core/client/stream/tabs/Comments/Comment/EditCommentForm/EditCommentFormContainer.tsx index d8be0237c..8897f6b72 100644 --- a/src/core/client/stream/tabs/Comments/Comment/EditCommentForm/EditCommentFormContainer.tsx +++ b/src/core/client/stream/tabs/Comments/Comment/EditCommentForm/EditCommentFormContainer.tsx @@ -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 { } public componentWillUnmount() { - clearTimeout(this.expiredTimer); + clearLongTimeout(this.expiredTimer); } private updateWhenExpired() {