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.
<img src="https://cdn.discordapp.com/attachments/856199501488717835/1087835262517792798/image.png" />
<img src="https://cdn.discordapp.com/attachments/856199501488717835/1087835352020029491/image.png" />
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.
useEffect(()=>{
ScrollComponent.reinitialization();
}, []);