I am using metronic in my web project. I noticed that in metronic HTML this error does not occur, but in React it does! And what happens when I use route instead of navigate, where in navigate it takes you on the route and refreshes the page at the same time. The layout does not adjust itself taking into account the kt_content and the rest of the components, only when I press F5, how do I solve this? Follow image for better understanding.
Hi Kaique Amaral,
Thank you for reaching out to us.
The issue is related to our ScrollComponent initialization. We will check it in more detail and include a fix in the next Metronic releases.
For now, as a temporary solution, you can add useEffect with component reinitialization function.