Skip to content

Commit

Permalink
refactor(example): remove explicit typings and change featureName key
Browse files Browse the repository at this point in the history
  • Loading branch information
erhise committed Jan 22, 2020
1 parent 4b302ec commit 4b48e51
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions projects/example-app/src/app/auth/reducers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const selectAuthState = createFeatureSelector<State, AuthState>(

export const selectAuthStatusState = createSelector(
selectAuthState,
(state: AuthState) => state.status
state => state.status
);
export const selectUser = createSelector(
selectAuthStatusState,
Expand All @@ -42,7 +42,7 @@ export const selectLoggedIn = createSelector(selectUser, user => !!user);

export const selectLoginPageState = createSelector(
selectAuthState,
(state: AuthState) => state.loginPage
state => state.loginPage
);
export const selectLoginPageError = createSelector(
selectLoginPageState,
Expand Down
4 changes: 2 additions & 2 deletions projects/example-app/src/app/books/reducers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export const selectSelectedBook = createSelector(
*/
export const selectSearchState = createSelector(
selectBooksState,
(state: BooksState) => state.search
state => state.search
);

export const selectSearchBookIds = createSelector(
Expand Down Expand Up @@ -139,7 +139,7 @@ export const selectSearchResults = createSelector(

export const selectCollectionState = createSelector(
selectBooksState,
(state: BooksState) => state.collection
state => state.collection
);

export const selectCollectionLoaded = createSelector(
Expand Down
2 changes: 1 addition & 1 deletion projects/example-app/src/app/reducers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export const metaReducers: MetaReducer<State>[] = !environment.production
* Layout Reducers
*/
export const selectLayoutState = createFeatureSelector<State, fromLayout.State>(
'layout'
fromLayout.layoutFeatureKey
);

export const selecthowSidenav = createSelector(
Expand Down

0 comments on commit 4b48e51

Please sign in to comment.