From 231016f69fecee6d346e983f2c6cdaabd280e44c Mon Sep 17 00:00:00 2001 From: Ilya Lebedev Date: Mon, 21 Sep 2020 06:26:47 +0300 Subject: [PATCH] [Example] with-react-intl: fix getInitialProps props ordering (#17174) Invalid ordering in Promise.all and in receiving destruction. Now appProps receives result of polyfill(supportedLocale) call. --- examples/with-react-intl/pages/_app.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/with-react-intl/pages/_app.tsx b/examples/with-react-intl/pages/_app.tsx index 75d209e5f7a5e..6bc246d015496 100644 --- a/examples/with-react-intl/pages/_app.tsx +++ b/examples/with-react-intl/pages/_app.tsx @@ -65,7 +65,7 @@ const getInitialProps: typeof App.getInitialProps = async appContext => { const [supportedLocale, messagePromise] = getMessages(requestedLocales); - const [appProps, messages] = await Promise.all([ + const [, messages, appProps] = await Promise.all([ polyfill(supportedLocale), messagePromise, App.getInitialProps(appContext),