My current layout setup is like this:
https://i.sstatic.net/hOTbe.png
In essence
<navbar/>
<router-outlet/>
The issue I'm facing is that the router-outlet has overflow: scroll, making it scrollable (just the outlet section, not the entire window).
I have implemented a reuse strategy to keep tabs in memory rather than reinitializing them with every navigation change. This strategy works well when I remove the overflow: scroll, but then the navbar does not stay at the top. With this configuration, whenever I go back or click on the navbar to restore that component, it continuously scrolls back to the top.
Is there a way to prevent components from redrawing each time the user navigates back to them? Alternatively, is there a method to restore scroll position when only a specific part of the window is scrollable, not the entire window?