diff --git a/examples/with-react-intl/pages/_app.js b/examples/with-react-intl/pages/_app.js index 2e7cc5e1..90c354c4 100644 --- a/examples/with-react-intl/pages/_app.js +++ b/examples/with-react-intl/pages/_app.js @@ -23,17 +23,17 @@ export default class MyApp extends App { // In the browser, use the same values that the server serialized. const { req } = ctx const { locale, messages } = req || window.__NEXT_DATA__.props + const initialNow = Date.now() - return { pageProps, locale, messages } + return { pageProps, locale, messages, initialNow } } render () { - const { Component, pageProps, locale, messages } = this.props - const now = Date.now() + const { Component, pageProps, locale, messages, initialNow } = this.props return ( - +