Skip to content

Schematics: Generate selectors file as part of feature schematic #2140

Closed
TypescriptID/platform
#268
@brandonroberts

Description

It's common practice to have a separate {feature-name}.selectors.ts file alongside your actions, reducers, etc. The feature schematic would add a flag to generate this file and it's tests in addition to the current set, and eventually become the default.

We could optionally do this for the entity schematic also.

At a minimum, the selectors file would:

  • Import the usual createSelector functions
  • Import the reducer exports
  • Include a selector that uses createFeatureSelector to select that feature key

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions