-
Notifications
You must be signed in to change notification settings - Fork 121
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
Cannot update a component (ConnectFunction
) while rendering a different component (SpecsParserComponent
). To locate the bad setState() call inside `SpecsParserComponent
#720
Comments
same problem here, the chart just flashes for a second and then disappears |
Thanks for bringing this to our attention. I tested out your chart code with some sample data on this codesandbox. https://codesandbox.io/s/cocky-hypatia-ivh3p?file=/src/App.tsx The only thing I changed from your code was the export interface SimulationStatsGraphSeries {
id: string;
name: string;
- data: Array<[Date, number]>;
+ data: Array<[number, number]>;
} If you could provide us with a small example dataset to reproduce the issue that would help a lot. |
Hi @nickofthyme I think I managed to create a non-functional example in codesandbox. I mean, this gives me the same error I am getting, but differently than my actual app, it plots the graph (my app doesn't): https://codesandbox.io/s/throbbing-waterfall-99mlz?file=/src/App.tsx Important differences:
So what I think the problem is:
I think that is the scenario. Somehow React started given this warning since version 16.3.x... The one thing I don't understand is why I don't get the graph to plot, since it looks like that in the example even though I got the warning it got plotted. Take a look at this issue: facebook/react#18178 (comment) |
Alright, so I dug a little deeper with your example, thanks for that btw. First of all, I ran into a memory leak issue in your codesandbox example. The Another thing I noticed is the simulation count was off. I have recently come across an issue using hooks for incrementing where the value of the setInterval(function() {
- const _simulation = simulation + 1;
- setSimulation(_simulation);
+ setSimulation((s) => s + 1);
}, 5000); Now back to the error you were getting... That comment from the react error was pretty useless, but reading down the thread I found a link to a fix on another repo final-form/react-final-form#751 (comment), that was fixed in this PR (https://github.com/final-form/react-final-form/pull/766/files). They say the issue was because of...
So what I gather after looking into several threads, is that it appears any update to the component state is what triggers the issue. Why?? I'm not sure, this error only seems to have surfaced in I'll talk to the team tomorrow and see if we can find a solution. Here is the working example |
The one thing I stil don't understand is why is the graph plotted in the codesandbox example, even though we've got the warning, but not in my app (graph should be in the selected area): At the end of the day I kind of don't mind the warning message in the console so long I get the graph. (which is happening in the codesandbox, warning+graph) |
Yeah that's strange. We found a fix to the console error on our end so hopefully, that will solve the visibility issue as well. I'll put up a PR soon. |
Awesome! Thank you so much for the making this happen so fast! |
🎉 This issue has been resolved in version 19.6.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Just an update on this:
Thank you |
Yup sorry about that use |
Let us know if that solves your visibility issues. |
Hi @nickofthyme sorry for the delay... Just to let you know that I'm still having issues with visibility. One thing I noticed wa this:
Render complete === false??? Maybe that's a hint... What I've tryied so far:
So, any ideas? If you want to have a look at the code in my repo, here it go: Thank you! |
Anyway, since this is closed because the original issue was solved, I opened another one: |
## [19.6.2](elastic/elastic-charts@v19.6.1...v19.6.2) (2020-06-29) ### Bug Fixes * react/redux issue with specParser ([opensearch-project#723](elastic/elastic-charts#723)) ([ee0aba3](elastic/elastic-charts@ee0aba3)), closes [opensearch-project#720](elastic/elastic-charts#720)
Describe the bug
I'm trying to plot a very simple Graph in my app, but I'm curently facing this weird issue:
To Reproduce
I'm currently using
I have a parent component which calls a child component where I have something like this:
Expected behaviour
Graph plotted.
Screenshots
Version (please complete the following information):
Additional context
Add any other context about the problem here.
Errors in browser console
Kibana Cross Issues
Add any Kibana related issues here.
Checklist
Delete any items that are not applicable to this issue.
Kibana Cross Issues
listkibana cross issue
tag is associated to the issue if any kibana cross issue is presentThe text was updated successfully, but these errors were encountered: