dom7 icon indicating copy to clipboard operation
dom7 copied to clipboard

NotFoundError: The object can not be found here.

Open ATShiTou opened this issue 4 years ago • 1 comments

export class LargeList<T> extends React.Component<LargeListProps<T>> {
  render() {
    const p = this.state.visibleParameters;
    let { data } = this.props;
    if (Array.isArray(data) && data.length === 0) {
      return <div />;
    }
    if (!data) data = [];
    return (
      <List
        virtualList
        ...
      >
        ...
      </List>
    );
  }

And I got this error:

[Error] NotFoundError: The object can not be found here.
	insertBefore
	insertBefore (react-dom.development.js:10061)
	commitPlacement (react-dom.development.js:20564)
	commitMutationEffects (react-dom.development.js:22761)
	callCallback (react-dom.development.js:347)
	dispatchEvent
	invokeGuardedCallbackDev (react-dom.development.js:397)
	invokeGuardedCallback (react-dom.development.js:454)
	commitRootImpl (react-dom.development.js:22554)
	commitRootImpl
	unstable_runWithPriority (scheduler.development.js:643)
	commitRoot (react-dom.development.js:22414)
	commitRoot
	runRootCallback (react-dom.development.js:21554)
	runRootCallback
	(anonymous function) (react-dom.development.js:11353)
	unstable_runWithPriority (scheduler.development.js:643)
	flushSyncCallbackQueueImpl (react-dom.development.js:11349)
	flushSyncCallbackQueue (react-dom.development.js:11338)
	batchedUpdates$1 (react-dom.development.js:21648)
	runReactions (mobx.module.js:1838)
	endBatch (mobx.module.js:1541)
	reportChanged (mobx.module.js:316)
	setNewValue (mobx.module.js:811)
	write (mobx.module.js:3972)
	set (mobx.module.js:4179)
	(anonymous function) (OrderReport.ts:403)
	generatorResume
	fulfilled (tslib.es6.js:91)
	promiseReactionJob


[Error] The above error occurred in the <div> component:
    in div (created by LargeList)
    in LargeList (created by OrderList)
    in OrderList (created by inject-with-intl-userInfo-orderSelector-orderRecord(OrderList))
    in inject-with-intl-userInfo-orderSelector-orderRecord(OrderList) (created by OrderReport)
    in div (created by f7-page-content)
    in f7-page-content (created by f7-page)
    in div (created by f7-page)
    in f7-page (created by OrderReport)
    in OrderReport (created by inject-with-intl-userInfo-orderReport-shareholderReport-agentReport-proxyReport-memberReport-orderRecord(OrderReport))
    in inject-with-intl-userInfo-orderReport-shareholderReport-agentReport-proxyReport-memberReport-orderRecord(OrderReport) (created by f7-view)
    in div (created by f7-view)
    in f7-view (created by AppFrame)
    in div (created by f7-app)
    in f7-app (created by AppFrame)
    in AppFrame (created by inject-with-intl-userInfo(AppFrame))
    in inject-with-intl-userInfo(AppFrame)
    in MobXProvider

Consider adding an error boundary to your tree to customize error handling behavior.
Visit https://fb.me/react-error-boundaries to learn more about error boundaries.
	logCapturedError (react-dom.development.js:19814)
	logError (react-dom.development.js:19850)
	callback (react-dom.development.js:20929)
	callCallback (react-dom.development.js:12929)
	commitUpdateEffects (react-dom.development.js:12968)
	commitUpdateQueue (react-dom.development.js:12956)
	commitLifeCycles (react-dom.development.js:20098)
	commitLayoutEffects (react-dom.development.js:22813)
	callCallback (react-dom.development.js:347)
	dispatchEvent
	invokeGuardedCallbackDev (react-dom.development.js:397)
	invokeGuardedCallback (react-dom.development.js:454)
	commitRootImpl (react-dom.development.js:22585)
	commitRootImpl
	unstable_runWithPriority (scheduler.development.js:643)
	commitRoot (react-dom.development.js:22414)
	commitRoot
	runRootCallback (react-dom.development.js:21554)
	runRootCallback
	(anonymous function) (react-dom.development.js:11353)
	unstable_runWithPriority (scheduler.development.js:643)
	flushSyncCallbackQueueImpl (react-dom.development.js:11349)
	flushSyncCallbackQueue (react-dom.development.js:11338)
	batchedUpdates$1 (react-dom.development.js:21648)
	runReactions (mobx.module.js:1838)
	endBatch (mobx.module.js:1541)
	reportChanged (mobx.module.js:316)
	setNewValue (mobx.module.js:811)
	write (mobx.module.js:3972)
	set (mobx.module.js:4179)
	(anonymous function) (OrderReport.ts:403)
	generatorResume
	fulfilled (tslib.es6.js:91)
	promiseReactionJob

ATShiTou avatar Oct 22 '19 10:10 ATShiTou

When the data changed from some items to [];

ATShiTou avatar Oct 22 '19 10:10 ATShiTou