-
-
Notifications
You must be signed in to change notification settings - Fork 253
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Render correct messages when the namespace changes in `useTransl…
…ations` (#58) * include namespace in cacheKey * add a test for cacheing by namespace * Improve naming for test The caching should be a implementation detail here Co-authored-by: Jan Amann <[email protected]> * Handle undefined namespace or key in cacheKey * fix linter issues with useTranslation hook after adding namespace to cache key Co-authored-by: Jan Amann <[email protected]>
- Loading branch information
Showing
2 changed files
with
36 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters