From cb1f40465d237dd94f382b72d96ab95346f645d6 Mon Sep 17 00:00:00 2001 From: n1ru4l Date: Mon, 15 Feb 2021 12:26:33 +0100 Subject: [PATCH] chore: please the linter --- src/useMutation.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/useMutation.ts b/src/useMutation.ts index d523c748..c97e50fe 100644 --- a/src/useMutation.ts +++ b/src/useMutation.ts @@ -39,7 +39,7 @@ export function useMutation( const isMountedRef = React.useRef(true); React.useEffect( - () => () => { + (): (() => void) => (): void => { isMountedRef.current = false; }, [],