From 9a40720b620a58352fd68aa672b54df18193fd3b Mon Sep 17 00:00:00 2001 From: Arjun jaiswal <156437180+Arjun8242@users.noreply.github.com> Date: Thu, 9 Jul 2026 12:50:02 +0530 Subject: [PATCH] Task/set change detection strategy to OnPush in home market component (#7277) * Set change detection strategy to OnPush * Update changelog --- CHANGELOG.md | 1 + .../src/app/components/home-market/home-market.component.ts | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ce8860e2f..7a48a2787 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed - Migrated the deprecated `@nx/webpack:webpack` executor to `@nx/webpack/plugin` +- Set the change detection strategy to `OnPush` in the markets overview ## 3.22.0 - 2026-07-08 diff --git a/apps/client/src/app/components/home-market/home-market.component.ts b/apps/client/src/app/components/home-market/home-market.component.ts index 40b8f145b..6bf99b31d 100644 --- a/apps/client/src/app/components/home-market/home-market.component.ts +++ b/apps/client/src/app/components/home-market/home-market.component.ts @@ -14,6 +14,7 @@ import { GfLineChartComponent } from '@ghostfolio/ui/line-chart'; import { DataService } from '@ghostfolio/ui/services'; import { + ChangeDetectionStrategy, ChangeDetectorRef, Component, computed, @@ -27,6 +28,7 @@ import { takeUntilDestroyed } from '@angular/core/rxjs-interop'; import { DeviceDetectorService } from 'ngx-device-detector'; @Component({ + changeDetection: ChangeDetectionStrategy.OnPush, imports: [ GfBenchmarkComponent, GfFearAndGreedIndexComponent,