From 90a7e5cb7d5581928421b6fb984991abfd193ad2 Mon Sep 17 00:00:00 2001 From: Evan Ye Date: Thu, 16 May 2019 14:09:47 +0800 Subject: [PATCH] Fix useEffect mount/unmount usage --- src/useTranslation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/useTranslation.js b/src/useTranslation.js index ef11a122a..49bedf4ce 100755 --- a/src/useTranslation.js +++ b/src/useTranslation.js @@ -72,7 +72,7 @@ export function useTranslation(ns, props = {}) { if (bindI18nStore && i18n) bindI18nStore.split(' ').forEach(e => i18n.store.off(e, boundReset)); }; - }); + }, []); const ret = [t.t, i18n, ready]; ret.t = t.t;