Skip to content

Commit

Permalink
Merge b4e4faf into eb678f7
Browse files Browse the repository at this point in the history
  • Loading branch information
adrai committed Dec 30, 2018
2 parents eb678f7 + b4e4faf commit d28ff8a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/NamespacesConsumer.js
Expand Up @@ -19,6 +19,17 @@ export class NamespacesConsumerComponent extends Component {
);
}

if (typeof props.i18n.then === 'function') {
this.state = {
i18nLoadedAt: null,
ready: false,
};

return warnOnce(
'Detected a promise instead of an i18next instance. Probably you passed the return value of the i18next.init() function, this is not possible anymore with v13 of i18next. Just pass in the i18next instance directly.'
);
}

// nextjs / SSR: getting data from next.js or other ssr stack
initSSR(props);

Expand Down

0 comments on commit d28ff8a

Please sign in to comment.