Browse Source

Task/set change detection strategy to OnPush in home market component (#7277)

* Set change detection strategy to OnPush

* Update changelog
pull/7284/head
Arjun jaiswal 5 days ago
committed by GitHub
parent
commit
9a40720b62
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 1
      CHANGELOG.md
  2. 2
      apps/client/src/app/components/home-market/home-market.component.ts

1
CHANGELOG.md

@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed ### Changed
- Migrated the deprecated `@nx/webpack:webpack` executor to `@nx/webpack/plugin` - 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 ## 3.22.0 - 2026-07-08

2
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 { DataService } from '@ghostfolio/ui/services';
import { import {
ChangeDetectionStrategy,
ChangeDetectorRef, ChangeDetectorRef,
Component, Component,
computed, computed,
@ -27,6 +28,7 @@ import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
import { DeviceDetectorService } from 'ngx-device-detector'; import { DeviceDetectorService } from 'ngx-device-detector';
@Component({ @Component({
changeDetection: ChangeDetectionStrategy.OnPush,
imports: [ imports: [
GfBenchmarkComponent, GfBenchmarkComponent,
GfFearAndGreedIndexComponent, GfFearAndGreedIndexComponent,

Loading…
Cancel
Save