Skip to content

Commit

Permalink
fix: add shareReplay to prevent unnecessary extent computations
Browse files Browse the repository at this point in the history
  • Loading branch information
ronitjadhav committed Dec 19, 2024
1 parent 40f4020 commit 692832e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libs/feature/record/src/lib/map-view/map-view.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import {
distinctUntilChanged,
finalize,
map,
shareReplay,
switchMap,
tap,
} from 'rxjs/operators'
Expand Down Expand Up @@ -167,7 +168,8 @@ export class MapViewComponent implements AfterViewInit {
...context,
view,
}
})
}),
shareReplay(1)
)

constructor(
Expand Down

0 comments on commit 692832e

Please sign in to comment.