File tree Expand file tree Collapse file tree 2 files changed +1
-10
lines changed Expand file tree Collapse file tree 2 files changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -139,9 +139,3 @@ export function createFeatureSelector<T>(
139
139
140
140
return Object . assign ( memoized , { release : reset } ) ;
141
141
}
142
-
143
- export function isSelector ( v : any ) : v is MemoizedSelector < any , any > {
144
- return (
145
- typeof v === 'function' && v . release && typeof v . release === 'function'
146
- ) ;
147
- }
Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ import { Action, ActionReducer } from './models';
9
9
import { ActionsSubject } from './actions_subject' ;
10
10
import { StateObservable } from './state' ;
11
11
import { ReducerManager } from './reducer_manager' ;
12
- import { isSelector , createSelector } from './selector' ;
13
12
14
13
@Injectable ( )
15
14
export class Store < T > extends Observable < T > implements Observer < Action > {
@@ -70,10 +69,8 @@ export class Store<T> extends Observable<T> implements Observer<Action> {
70
69
71
70
if ( typeof pathOrMapFn === 'string' ) {
72
71
mapped$ = pluck . call ( this , pathOrMapFn , ...paths ) ;
73
- } else if ( typeof pathOrMapFn === 'function' && isSelector ( pathOrMapFn ) ) {
74
- mapped$ = map . call ( this , pathOrMapFn ) ;
75
72
} else if ( typeof pathOrMapFn === 'function' ) {
76
- mapped$ = map . call ( this , createSelector ( s => s , pathOrMapFn ) ) ;
73
+ mapped$ = map . call ( this , pathOrMapFn ) ;
77
74
} else {
78
75
throw new TypeError (
79
76
`Unexpected type '${ typeof pathOrMapFn } ' in select operator,` +
You can’t perform that action at this time.
0 commit comments