Skip to content

Commit

Permalink
fix: Move hook out of condition (#1410)
Browse files Browse the repository at this point in the history
Co-authored-by: Isaac Hinman <[email protected]>
  • Loading branch information
Arnarkari93 and isaachinman authored Sep 7, 2021
1 parent 9555888 commit e7eb577
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/appWithTranslation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ export const appWithTranslation = (
lng: initialLocale,
resources: initialI18nStore,
}))

useMemo(() => {
globalI18n = i18n
}, [i18n])
}

useMemo(() => {
globalI18n = i18n
}, [i18n])

return i18n !== null ? (
<I18nextProvider
i18n={i18n}
Expand Down

1 comment on commit e7eb577

@vercel
Copy link

@vercel vercel bot commented on e7eb577 Sep 7, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.