This PR fixes the issue where Menus plugin breaks admin panel. Navigating to Menus and then to some other part of admin panel renders a blank page, running with yarn develop --watch-admin hints that destroy function does not which is usually caused by incorrect use of useEffect where hook does not return cleanup function.
This PR fixes the issue where Menus plugin breaks admin panel. Navigating to Menus and then to some other part of admin panel renders a blank page, running with
yarn develop --watch-admin
hints thatdestroy
function does not which is usually caused by incorrect use ofuseEffect
where hook does not return cleanup function.