-
Notifications
You must be signed in to change notification settings - Fork 8k
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
[TableListView] Tries to update React state on unmonted component #159704
Comments
Pinging @elastic/kibana-visualizations @elastic/kibana-visualizations-external (Team:Visualizations) |
The problem is here https://github.com/elastic/kibana/blob/main/packages/content-management/table_list_view_table/src/table_list_view_table.tsx#L880 Moving this to the shared-ux team as they own the content management component. |
Pinging @elastic/appex-sharedux (Team:SharedUX) |
I will look into it but I am pretty sure we are in this scenario: There isn't really any memory leak, it's just a state that gets updated whenever the query params changes. Which comes from [EDIT]: Looks like the warning has been removed in react |
Just a guess, while looking through code on GitHub: it might be solved by checking if component is still mounted before executing this state update line:
|
Yes the fix is easy. From the React issue I link it just seems that those "check if component mounted before updating state" dance might just be noise (that will be removed the day we upgrade to |
Closing this issue as it will be fixed when upgrading to React (#181936) |
Kibana version:
main
Currently there is only one listing page with 2 tabs, the visualize library.
The text was updated successfully, but these errors were encountered: