I am using Openlayers 6 in my project alongside Angular 8. And up until now i noticed that whenever i hover over Openlayers map, Angular component, where the map is located, gets re-rendered.
My question is how do i make parent component stop re-rendering on that hover all the time. Because it slows down the app. I have a much bigger component in my project and making everything re-render because of this, will make the app itself slower.
For this purpose i created a repo to demonstrate this: https://github.com/petrovichm/angular-openlayers-hover-problem. In this example i added a method in html that will log when it is run, thus giving a overview how many times is angular re rendering component.
I wanted to create online runnable with plunker or codesanbox but when i make this example window freezes because there is endless loop in re-render, which makes them unusable, that doesn't happen really when i run this project locally, it only happens on hover
Thanks.