Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Random error on unmount : Unable to find node on an unmounted component. #322

Open
AntoineDuComptoirDesPharmacies opened this issue Jan 19, 2023 · 2 comments

Comments

@AntoineDuComptoirDesPharmacies

Actions

We have an antd slider mounted on a Lazy loaded page (with a Suspense parent).
When we click in the menu of our website, this unmount the current lazy loaded page and load an other lazy loaded page. (Using react router component Route)
During this operation, we sometime have an error popping on rc-trigger library.

Is there any way to protect against this ?

Error

Error: Unable to find node on an unmounted component.
  at a(webpack://lcdp-react/../node_modules/react-dom/cjs/react-dom.production.min.js:56:67)
  at Zb(webpack://lcdp-react/../node_modules/react-dom/cjs/react-dom.production.min.js:57:217)
  at exports.findDOMNode(webpack://lcdp-react/../node_modules/react-dom/cjs/react-dom.production.min.js:320:226)
  at getRootDomNode(webpack://lcdp-react/../node_modules/rc-trigger/lib/index.js:255:34)
  at attachParent(webpack://lcdp-react/../node_modules/rc-trigger/lib/index.js:349:29)
  at _this.attachId(webpack://lcdp-react/../node_modules/rc-trigger/lib/index.js:367:19)
  at callRef(webpack://lcdp-react/../node_modules/rc-trigger/node_modules/rc-util/lib/raf.js:35:7)
  at realId(webpack://lcdp-react/../node_modules/rc-trigger/node_modules/rc-util/lib/raf.js:39:9)
  at s(webpack://lcdp-react/../src/helpers.ts:98:1)

Context

rc-trigger version : 5.3.4
antd version : 4.17.3

Yours faithfully,
LCDP

@ericdong79
Copy link

Same issue here (Ant Design 4.18 + React 17), any updates?

@zzuhan
Copy link

zzuhan commented Oct 20, 2023

same issue (rc-trigger 5.2.10,Ant Design 4.18.3)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants