We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
component-store, eslint-plugin
I think an NgRx ComponentStore variant of the NgRx Store ESLint rule avoid-mapping-selectors would be helpful to avoid anti-patterns.
export class UserStore extends ComponentStore<UserState> { loggedInUser$ = this.select((state) => state.loggedInUser); name$ = this.select(this.loggedInUser$).pipe(map((user) => user.name)); }
export class UserStore extends ComponentStore<UserState> { loggedInUser$ = this.select((state) => state.loggedInUser); name$ = this.select(this.loggedInUser$, (user) => user.name); }
Currently, I'm maintaining internal developer guides for NgRx ComponentStore usage.
The text was updated successfully, but these errors were encountered:
feat(eslint-plugin): add new avoid-mapping-component-store-selectors …
40477dd
…rule (#4026) Closes #3940
Successfully merging a pull request may close this issue.
Which @ngrx/* package(s) are relevant/related to the feature request?
component-store, eslint-plugin
Information
I think an NgRx ComponentStore variant of the NgRx Store ESLint rule avoid-mapping-selectors would be helpful to avoid anti-patterns.
Incorrect usage
Correct usage
Describe any alternatives/workarounds you're currently using
Currently, I'm maintaining internal developer guides for NgRx ComponentStore usage.
I would be willing to submit a PR to fix this issue
The text was updated successfully, but these errors were encountered: