Description of problem: We should be using the `useSafetyFirst` hook for react state whenever there is asynchronous update to state. When querying rbac rules, it's possible that the user loads a part of the UI that requests rbac checks and then navigates away before the rbac check completes. As a result we get warnings in the console How reproducible: Reproducible on a slower connection or with dev tools enabled to toggle the network. Navigate to a place in the UI (must be first visit) such as the topology and select a node to open the side bar. Upon loading of the sidebar, immediately navigate away and wait for the rbac network request to complete.
Created attachment 1668228 [details] no react warning updating state of an unmounted component due to rbac checks-1
Created attachment 1668229 [details] react warning updating state of an unmounted component due to rbac checks-2
Verified on build : 4.4.0-0.ci-2020-03-06-174627 Chrome browser: 76.0.3809.132
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2020:0581