diff --git a/example/nextjs/pages/_app.js b/example/nextjs/pages/_app.js
index 2309645a..8eb5f0e1 100644
--- a/example/nextjs/pages/_app.js
+++ b/example/nextjs/pages/_app.js
@@ -31,22 +31,8 @@ if (enableSubpaths) {
// Warning: Did not expect server HTML to contain a
in
.
// not sure - did neither find something wrong - nor seems the warning to make sense
export default class MyApp extends App {
-
- static async getInitialProps({Component, router, ctx}) {
- let pageProps = {};
-
- if (Component.getInitialProps) {
- pageProps = await Component.getInitialProps(ctx);
- }
-
- // initialI18nStore and initialLanguage need to be passed into NamespacesConsumer
- // for any page that is not wrapped with withI18next to enable ssr localized rendering
- let i18nProps = i18n.getInitialProps(ctx.req, "common");
- return {pageProps, i18nProps};
- }
-
render() {
- const { Component, pageProps, i18nProps } = this.props;
+ const { Component, pageProps } = this.props;
return (
@@ -55,8 +41,6 @@ export default class MyApp extends App {
ns="common"
i18n={(pageProps && pageProps.i18n) || i18n}
wait={process.browser}
- initialI18nStore={i18nProps.initialI18nStore}
- initialLanguage={i18nProps.initialLanguage}
>
{t => (