Skip to content

Commit

Permalink
Fix useEffect mount/unmount usage
Browse files Browse the repository at this point in the history
  • Loading branch information
jigsawye authored May 16, 2019
1 parent 8d1e5d4 commit 90a7e5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/useTranslation.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 90a7e5c

Please sign in to comment.