未验证 提交 231016f6 编写于 作者: I Ilya Lebedev 提交者: GitHub

[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.
上级 4f1ccda5
......@@ -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),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册