Uncaught Error: Objects are not valid as a React child

react-dom.development.js?61bb:13435 Uncaught Error: Objects are not valid as a React child (found: object with keys {props, context, refs, updater, __reactstandin__proxyGeneration, __reactstandin__cachedResult}). If you meant to render a collection of children, use an array instead.
    in HeadTable (created by ExpandableTable)
    in div (created by ExpandableTable)
    in div (created by ExpandableTable)
    in ExpandableTable (created by Connect(ExpandableTable))
    in Connect(ExpandableTable) (created by Table)
    in Provider (created by Table)
    in Table (created by LocaleReceiver)
    in LocaleReceiver (created by Context.Consumer)
    in div (created by Context.Consumer)
    in div (created by Context.Consumer)
    in Spin (created by Context.Consumer)
    in div (created by Context.Consumer)
    in Table (created by withStore(Table))
    in withStore(Table) (created by Template)
    in div (created by Template)
    in div (created by Template)
    in Template (created by Rule)
    in div (created by Rule)
    in div (created by Rule)
    in Rule (created by Context.Consumer)
    in Route (created by withRouter(Rule))
    in withRouter(Rule) (created by HotExportedwithRouter(Rule))
    in AppContainer (created by HotExportedwithRouter(Rule))
    in HotExportedwithRouter(Rule) (created by WithErrorBoundary(HotExportedwithRouter(Rule)))
    in ErrorBoundary (created by WithErrorBoundary(HotExportedwithRouter(Rule)))
    in WithErrorBoundary(HotExportedwithRouter(Rule)) (created by ConnectFunction)
    in ConnectFunction (created by LoadableComponent)
    in LoadableComponent (created by Context.Consumer)
    in Route (created by ResourceMain)
    in Switch (created by ResourceMain)
    in div (created by ResourceMain)
    in ResourceMain (created by LoadableComponent)
    in LoadableComponent (created by Context.Consumer)
    in Route (created by App)
    in Switch (created by App)
    in div (created by App)
    in div (created by App)
    in div (created by App)
    in App (created by HotExportedApp)
    in AppContainer (created by HotExportedApp)
    in HotExportedApp (created by WithErrorBoundary(HotExportedApp))
    in ErrorBoundary (created by WithErrorBoundary(HotExportedApp))
    in WithErrorBoundary(HotExportedApp) (created by ConnectFunction)
    in ConnectFunction (created by LoadableComponent)
    in LoadableComponent (created by Context.Consumer)
    in Route (created by RootRoutesView)
    in Switch (created by RootRoutesView)
    in div (created by RootRoutesView)
    in ErrorBoundary (created by RootRoutesView)
    in LocaleProvider (created by Context.Consumer)
    in LocaleReceiver (created by ConfigProvider)
    in ConfigProvider (created by RootRoutesView)
    in RootRoutesView (created by HotExportedRootRoutesView)
    in AppContainer (created by HotExportedRootRoutesView)
    in HotExportedRootRoutesView
    in Router (created by HashRouter)
    in HashRouter
    in Provider
    at throwOnInvalidObjectType (react-dom.development.js?61bb:13435)
    at reconcileChildFibers (react-dom.development.js?61bb:14335)
    at reconcileChildren (react-dom.development.js?61bb:16793)
    at updateFunctionComponent (react-dom.development.js?61bb:17077)
    at beginWork (react-dom.development.js?61bb:18643)
    at HTMLUnknownElement.callCallback (react-dom.development.js?61bb:188)
    at Object.invokeGuardedCallbackDev (react-dom.development.js?61bb:237)
    at invokeGuardedCallback (react-dom.development.js?61bb:292)
    at beginWork$1 (react-dom.development.js?61bb:23234)
    at performUnitOfWork (react-dom.development.js?61bb:22185)

最近遇到两个项目出现这个样的问题,只有在手动刷新的情况下,这个有用antd,Table的页面就会崩溃,不是手动刷新的话 就不会出现奔溃的情况,但是检查代码也没有出现任何在render中直接渲染对象的情况,请问有人遇到这样的问题吗? 对还有个问题就是好像和开发环境的热更新有关,具体也不知道怎么回事?
另,表格数据是放在store中的,在注入组件的时候,加上了hot,如这样export default connect(selector, actionCreator)(hot(module)(view))
因为其他项目也用的此框架,但是没有问题,所以猜想最近安装的antd包有问题,但是其他项目也是最近装的却没有问题。。。

阅读 5.2k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题