Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix hooks being called conditionally in useTranslation
In the `useTranslation` hook, `useContext` is called conditionally, which breaks the Rule of Hooks, so it may cause problems in the future. This fixes it by calling `useContext` on every render, just not always using the result from it.
- Loading branch information