From 5255fd1810b677a545129a0f6e43d18348b5ff22 Mon Sep 17 00:00:00 2001 From: Brandon Date: Wed, 6 May 2020 07:59:04 -0500 Subject: [PATCH] Revert "fix(router-store): selectors should return MemoizedSelector (#2492)" (#2515) This reverts commit 39a4b91c89d98ee48a77346c123aa2a456fa4824. --- modules/router-store/src/models.ts | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/modules/router-store/src/models.ts b/modules/router-store/src/models.ts index 7bb10dbe26..dbbaf54bc2 100644 --- a/modules/router-store/src/models.ts +++ b/modules/router-store/src/models.ts @@ -1,14 +1,11 @@ import { Data, Params } from '@angular/router'; -import { MemoizedSelector } from '@ngrx/store'; export interface RouterStateSelectors { - selectCurrentRoute: MemoizedSelector; - selectQueryParams: MemoizedSelector; - selectQueryParam: (param: string) => MemoizedSelector; - selectRouteParams: (state: V) => MemoizedSelector; - selectRouteParam: ( - param: string - ) => (state: V) => MemoizedSelector; - selectRouteData: (state: V) => MemoizedSelector; - selectUrl: (state: V) => MemoizedSelector; + selectCurrentRoute: (state: V) => any; + selectQueryParams: (state: V) => Params; + selectQueryParam: (param: string) => (state: V) => string | undefined; + selectRouteParams: (state: V) => Params; + selectRouteParam: (param: string) => (state: V) => string | undefined; + selectRouteData: (state: V) => Data; + selectUrl: (state: V) => string; }