我将一个对象作为道具传递给我的组件。我可以访问它,它会将它作为对象返回,但当我试图访问对象之外的项时,它会显示未定义。your codebase into multiple bundles, which can be loaded on demand." }
undefined 最后一个console.log()的结果在底部这是我从其中传递库对象的组件: import React, {
,以确定路由是否将布尔值设置为true,然后我可以将函数的结果作为支持传递给应用程序的组件。photoURL,我将该存储API作为对象返回给调用者。Promise.resolve()
//Rest of app logic, data is still undefined
而不是从函数中返回对象,我只是返回了防火墙存储承诺,并处理了调用方的<