-
Notifications
You must be signed in to change notification settings - Fork 187
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
TypeError: cannot read properties of undefined on the main Agents view #4158
Comments
Also, on the On hover, the text is shown as a link, but it's hard to guess at first that it's a link. In order to improve the UI/UX, this text should be colored properly, as the rest of the links on the App, and/or add a |
Debugging I saw that the error occurs inside a function called myRender. I got to see that myRender is called only from the updateVis function and that function is called from:
I saw that updateVis executes 2 functions renderComplete and myRender, and what is happening is that when it is executed from the WillUnmount, the updateVis function executes myRender and myRender since it is asynchronous, it passes to the callStack and what is synchronous continues to be executed. |
Thanks for the report. We could schedule a meeting to discuss your proposal. |
ResearchThe error appears when the The
The On the other hand, as @chantal-kelm said, it seems that it doesn't have sense to update the visualization when the component is going to be unmounted. We should review if there is something that is required to do before unmounting the component. |
As mentioned above the component's updateVis() method is called in the componentWillUnmount and executes two methods. One of the methods it executes is myRender which has been determined to not need to be called when the component is unmounted. The other method it executes is renderComplete which, together with my colleague @Desvelao , we investigated if it was necessary to execute or not when the component is unmounted, and in the case of confirming that it was not necessary, we could already eliminate the updateVis() of the componentWillUnmount. Video where you see the error solved: |
Description
On the Agent view, the navigation to the Inventory Data throws an error only when the Agent view has been previously resized.
Steps to reproduce
Inventory Data
section.Screenshots
The text was updated successfully, but these errors were encountered: