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.

BarChart throws `NS_ERROR_FAILURE` as component rendering it unmounts.

See original GitHub issue

I am submitting a…

Bug

charts version:

0.10.2

Issue description

When a component that renders the react package’s BarChart component unmounts, an NS_ERROR_FAILURE error is thrown in the browser’s console.

Here are the last two functions that I think were called:

Steps to produce the issue

  1. Mount a component that renders BarChart.
  2. Unmount that component.

Current behavior

BarChart throws an NS_ERROR_FAILURE error as it unmounts.

Expected behavior

BarChart doesn’t throw an error.

Screenshot or recording

Screen Shot 2019-04-09 at 3 41 18 PM

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
theiliadcommented, Apr 9, 2019

Good catch @cal-smith. Something I can think of right off the bat is implementing a function for all wrappers to call upon unmounting components. We will remove at that point any listeners or observers binding to the charts

0reactions
theiliadcommented, Jan 28, 2020

This seems to have been fixed by the rewrite. Feel free to re-open if the issue still persists

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't perform a React state update on an unmounted ...
Warning: Can't perform a React state update on an unmounted component. Solution. You can declare let isMounted = true inside useEffect , which ......
Read more >
Throwing AbortException when unmounting react-pdf ... - GitHub
I'd like to be able to unmount my PDF viewer component before the PDF is finished rendering, without having an unhandled promise exception....
Read more >
How to work with React the right way to avoid some common ...
Specifically, calling setState() in an unmounted component means that your app is still holding a reference to the component after the component ...
Read more >
Lifecycle Methods - React - Codecademy
Updatilng an existing component. Catching any errors associated with a component render-gone-wrong. Unmounting a component and removing it from the DOM.
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