Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍
TypeScript angularetffinancefintechghostfoliohacktoberfestinvestingnestjsosspersonal-financeportfolioprismasoftwarestocktrackertradingtypescriptwealth-managementweb
Task/set change detection strategy to OnPush in allocations page (#7274)
Вячеслав Дорошенко73d002f5c013
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 3f2fc105d6..0b0237916e 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0### Changed- Improved the user account deletion flow in the user settings of the user account page+- Set the change detection strategy to `OnPush` in the allocations page- Set the change detection strategy to `OnPush` in the portfolio holdings page- Set the change detection strategy to `OnPush` in the _FIRE_ page- Set the change detection strategy to `OnPush` in the users section of the admin control paneldiff --git a/apps/client/src/app/pages/portfolio/allocations/allocations-page.component.ts b/apps/client/src/app/pages/portfolio/allocations/allocations-page.component.tsindex 1ed8bfa668..f1dfed942a 100644--- a/apps/client/src/app/pages/portfolio/allocations/allocations-page.component.ts+++ b/apps/client/src/app/pages/portfolio/allocations/allocations-page.component.ts@@ -22,6 +22,7 @@ import { GfValueComponent } from '@ghostfolio/ui/value';import { GfWorldMapChartComponent } from '@ghostfolio/ui/world-map-chart';import {+ ChangeDetectionStrategy,ChangeDetectorRef,Component,computed,@@ -48,6 +49,7 @@ import { filter, switchMap, tap } from 'rxjs';import { AllocationsPageParams } from './interfaces/interfaces';@Component({+ changeDetection: ChangeDetectionStrategy.OnPush,imports: [GfPortfolioProportionChartComponent,GfPremiumIndicatorComponent,@@ -161,6 +163,8 @@ export class GfAllocationsPageComponent implements OnInit {.pipe(takeUntilDestroyed(this.destroyRef)).subscribe((impersonationId) => {this.hasImpersonationId = !!impersonationId;++ this.changeDetectorRef.markForCheck();});this.userService.stateChanged