devabhishekpal commented on code in PR #5154:
URL: https://github.com/apache/ozone/pull/5154#discussion_r1285597702
##########
hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/src/views/diskUsage/diskUsage.tsx:
##########
@@ -221,6 +241,13 @@ export class DiskUsage extends
React.Component<Record<string, object>, IDUState>
this.updatePieChart('/', DEFAULT_DISPLAY_LIMIT);
}
+ componentWillUnmount(): void {
Review Comment:
componentWillUnmount() is basically a lifecycle method, which is called
whenever a component is going to get removed from the DOM, so essentially, in
this case, when we are switching the views.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]