BarChart throws `NS_ERROR_FAILURE` as component rendering it unmounts.
See original GitHub issueI 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
- Mount a component that renders BarChart.
- 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
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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
This seems to have been fixed by the rewrite. Feel free to re-open if the issue still persists