Trying to fix race condition in i18n load

This commit is contained in:
vjrj 2018-11-18 15:43:48 +01:00
parent df51368d50
commit 564b9e8ead

View file

@ -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,