From 3aea9ae9a3304ecdb8e8e7dc8618fc48ccdd61cc Mon Sep 17 00:00:00 2001 From: mehmet-erim Date: Thu, 19 Nov 2020 13:57:31 +0300 Subject: [PATCH] feat: add the method to the internal store --- .../packages/core/src/lib/utils/internal-store-utils.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/npm/ng-packs/packages/core/src/lib/utils/internal-store-utils.ts b/npm/ng-packs/packages/core/src/lib/utils/internal-store-utils.ts index 7a481121ee..fbf707c284 100644 --- a/npm/ng-packs/packages/core/src/lib/utils/internal-store-utils.ts +++ b/npm/ng-packs/packages/core/src/lib/utils/internal-store-utils.ts @@ -30,6 +30,11 @@ export class InternalStore { this.update$.next(state); } + set(state: State) { + this.state$.next(state); + this.update$.next(state); + } + reset() { this.patch(this.initialState); }