-
Notifications
You must be signed in to change notification settings - Fork 12
feat(i18n): add loaded namespaces and isLoaded into useTranslation #183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
ef3c436 to
73e42c3
Compare
73e42c3 to
c4d9fac
Compare
Codecov Report
@@ Coverage Diff @@
## master #183 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 8 8
Lines 264 267 +3
Branches 39 39
=========================================
+ Hits 264 267 +3
Continue to review full report at Codecov.
|
c4d9fac to
a047eb5
Compare
27bad93 to
ba6085f
Compare
ba6085f to
3636333
Compare
3636333 to
56807b1
Compare
Add a new state namespaces on Provider, this state re-present namespace that are already loaded.
Add isLoaded on useTranslation hook, this params will help to avoid multi-rerender when it's not needed.
Add ReactDom unstable_batchedUpdates to minimize number of renders