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

React integration - Error while unmounting the component #211

Closed
dinoiam opened this issue Aug 3, 2023 · 2 comments
Closed

React integration - Error while unmounting the component #211

dinoiam opened this issue Aug 3, 2023 · 2 comments
Labels

Comments

@dinoiam
Copy link

dinoiam commented Aug 3, 2023

Hello everyone, inside our platform we have this hybrids component that is behaving strangely.
Everything seems fine during the render face but when I switch page and then (I guess) react is trying to unmount the component I got this error.

Component
hybrids 4.3.0
hybrids-router 2.0.0

React platform
React 18.2.0
Node v18.17.0

Dunno if you could help, but I'm out of ideas. Thank you anyway for your time in advise!

Screenshot 2023-08-03 alle 09 04 05
@smalluban
Copy link
Contributor

Hi @dinoiam. You are using a pretty old version of hybrids and another package (hybrids-router), which is created and maintained by someone else.

However, I doubted that hybrids were freezing the whole element instance, so it is not possible to delete the property. You can check out if hybrids are indeed a problem by not calling the define() function for that component. The element should be still there, but the library won't define it.

@smalluban smalluban added the help label Aug 4, 2023
@smalluban
Copy link
Contributor

Feel free to re-open, if there is anything that you want to discuss about the subject.

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

No branches or pull requests

2 participants