Skip to content

Commit

Permalink
refactor(store): update create feature selector (#3198)
Browse files Browse the repository at this point in the history
Closes #3197
  • Loading branch information
bryantlikes authored Oct 23, 2021
1 parent 7a779e7 commit c2737b4
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion modules/store/src/feature_creator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export function createFeature<
NotAllowedFeatureStateCheck<FeatureState>
): Feature<AppState, FeatureName, FeatureState> {
const { name, reducer } = featureConfig;
const featureSelector = createFeatureSelector<AppState, FeatureState>(name);
const featureSelector = createFeatureSelector<FeatureState>(name);
const nestedSelectors = createNestedSelectors(featureSelector, reducer);

return ({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ export const selectBooks = createSelector(
);

export const selectCollectionState = createFeatureSelector<
AppState,
ReadonlyArray<string>
>("collection");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ export const selectBooks = createSelector(
);

export const selectCollectionState = createFeatureSelector<
AppState,
ReadonlyArray<string>
>("collection");

Expand Down

0 comments on commit c2737b4

Please sign in to comment.