From bb878149b4f3bea81e57625c066dee293d41fae6 Mon Sep 17 00:00:00 2001 From: Harrison Ifeanyichukwu Date: Sun, 16 Apr 2023 23:18:19 +0200 Subject: [PATCH] fix: rename cleanEffect to clean --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index f5de7cd..4775570 100644 --- a/src/index.ts +++ b/src/index.ts @@ -36,10 +36,10 @@ export const createEffectCleaner = ( const stateModifier = stateModifiers[key]; result[key] = new Proxy(stateModifier, handler); return result; - }, {} as T & { cleanEffect: () => void }); + }, {} as T & { clean: () => void }); // cleans effects - proxies.cleanEffect = () => { + proxies.clean = () => { _stalled = true; // abort asynchronous requests