Trying to fix race condition in i18n load
This commit is contained in:
parent
df51368d50
commit
564b9e8ead
1 changed files with 59 additions and 57 deletions
|
|
@ -186,7 +186,9 @@ export default withTracker(() => {
|
||||||
const loading = !Roles.subscription.ready() || !i18nReady.get();
|
const loading = !Roles.subscription.ready() || !i18nReady.get();
|
||||||
const name = user && user.profile && user.profile.name && getUserName(user.profile.name);
|
const name = user && user.profile && user.profile.name && getUserName(user.profile.name);
|
||||||
const emailAddress = user && user.emails && user.emails[0].address;
|
const emailAddress = user && user.emails && user.emails[0].address;
|
||||||
// console.log(`i18n ready?: ${i18nReady.get()}`);
|
Meteor.autorun(() => {
|
||||||
|
console.log(`i18n ready?: ${i18nReady.get()}`);
|
||||||
|
});
|
||||||
return {
|
return {
|
||||||
loading,
|
loading,
|
||||||
loggingIn,
|
loggingIn,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue