question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Removing an archer element from DOM causes crash

See original GitHub issue

I am working on a tree view structure. When I remove one of the nodes from my tree (wrapped in an archer element) I get the error: Uncaught TypeError: Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element'. from React Archer.

I’m not sure if you have seen this issue before, but removing the archer container and archer elements from my project works as expected.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
pierpocommented, May 7, 2020

Sure, here it is: https://github.com/pierpo/react-archer/releases/tag/v2.0.0

Thank you for pointing out this issue, I had not realized this release would break existing layouts. I thought it would only break for usages with multiple children to ArcherElement.

0reactions
pierpocommented, May 11, 2020

The unclickable element was very likely linked to this https://github.com/pierpo/react-archer/issues/97

Thank you for reporting an issue!

Read more comments on GitHub >

github_iconTop Results From Across the Web

javascript - If a DOM Element is removed, are its listeners also ...
According to the jquery Documentation when using remove() method over an element, all event listeners are removed from memory. This affects the element...
Read more >
Manipulating the DOM with Refs - React Docs
After you've manually removed the DOM element, trying to use setState to show it again will lead to a crash. This is because...
Read more >
Instructions to Police for Reporting Crashes
These instructions have been revised to match the Form CR-3 1/1/2015 and cover most situations that arise in motor vehicle crash ...
Read more >
Centro de noticias de Steam
Fixed a crash which could occur during dropship descent that was cause by ... Fixed map icons not removing widget from parent once...
Read more >
DOM elements | Maps JavaScript API - Google Developers
In the onRemove() method, you should remove the objects from the DOM. You must call setMap() with a valid Map object to trigger...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found