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

maximum update depth exceeded on custom tooltips demo #37

Closed
jharris4 opened this issue Jun 19, 2019 · 1 comment
Closed

maximum update depth exceeded on custom tooltips demo #37

jharris4 opened this issue Jun 19, 2019 · 1 comment

Comments

@jharris4
Copy link

Hi, this is a great library! I've built something similar in the past so I'm definitely keeping an eye on this repo. ;-)

I was just playing with your demos, and the custom tooltip example seems to crash fairly quickly/often: https://react-charts.js.org/examples/custom-tooltip

vendors~main.d211a9cb.js:1 Invariant Violation: Minified React error #185; visit https://reactjs.org/docs/error-decoder.html?invariant=185 for the full message or use the non-minified dev environment for full errors and additional helpful warnings. 
    at https://react-charts.js.org/templates/vendors~main.d211a9cb.js:1:169683
    at u (https://react-charts.js.org/templates/vendors~main.d211a9cb.js:1:169786)
    at eu (https://react-charts.js.org/templates/vendors~main.d211a9cb.js:1:264447)
    at ca (https://react-charts.js.org/templates/vendors~main.d211a9cb.js:1:225230)
    at https://react-charts.js.org/main.651d5ede.js:1:41784
    at bi (https://react-charts.js.org/templates/vendors~main.d211a9cb.js:1:244545)
    at qi (https://react-charts.js.org/templates/vendors~main.d211a9cb.js:1:251507)
    at Vi (https://react-charts.js.org/templates/vendors~main.d211a9cb.js:1:254256)
    at https://react-charts.js.org/templates/vendors~main.d211a9cb.js:1:267460
    at Object.t.unstable_runWithPriority (https://react-charts.js.org/templates/vendors~main.d211a9cb.js:1:278230)

The full text of the error you just encountered is:

Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.

This was on Chrome Version 74.0.3729.169

There were also quite a lot of these errors prior to the crash:

Error: <rect> attribute height: Expected length, "NaN".
Error: <rect> attribute y: Expected length, "NaN".

You might want to consider throwing some error boundaries into the demos as well, using componentDidCatch... ;-)

@jharris4 jharris4 changed the title maximum update depth maximum update depth exceeded on custom tooltips demo Jun 19, 2019
@tannerlinsley
Copy link
Collaborator

This should be fixed in the latest version. Thanks for finding this!

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

2 participants