From 90ba9d000ff35039028cb66753114a6b0b452491 Mon Sep 17 00:00:00 2001 From: streamich Date: Sun, 5 Jan 2020 10:07:19 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20remove=20set=20dependenci?= =?UTF-8?q?es=20in=20useSet=20hook?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/useSet.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/useSet.ts b/src/useSet.ts index 680f8dceec..01a9ca2330 100644 --- a/src/useSet.ts +++ b/src/useSet.ts @@ -19,7 +19,7 @@ const useSet = (initialSet = new Set()): [Set, Actions] => { remove: item => setSet(prevSet => new Set(Array.from(prevSet).filter(i => i !== item))), reset: () => setSet(initialSet), }), - [set, setSet] + [setSet] ); const utils = {