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
The following command: ng generate @ngrx/schematics:feature customName generates effects file:
ng generate @ngrx/schematics:feature customName
import { Injectable } from '@angular/core'; import { Actions, Effect, ofType } from '@ngrx/effects'; import { CustomNameActionTypes } from './custom-name.actions'; @Injectable() export class CustomNameEffects { @Effect() loadFoos$ = this.actions$.pipe(ofType(CustomNameActionTypes.LoadCustomNames)); constructor(private actions$: Actions) {} }
I think that instead of loadFoos$ it should be loadCustomNames$:
loadFoos$
loadCustomNames$
import { Injectable } from '@angular/core'; import { Actions, Effect, ofType } from '@ngrx/effects'; import { CustomNameActionTypes } from './custom-name.actions'; @Injectable() export class CustomNameEffects { @Effect() loadCustomNames$ = this.actions$.pipe(ofType(CustomNameActionTypes.LoadCustomNames)); constructor(private actions$: Actions) {} }
"@ngrx/schematics": "^6.1.0", "@angular/core": "^6.1.0", node: 10.9.0
[x] Yes (Assistance is provided if you need help submitting a pull request) [ ] No
The text was updated successfully, but these errors were encountered:
👍, do you mind sending a Pull Request to get this solved?
Sorry, something went wrong.
Sure! I'll do it today or tomorrow at the latest.
Thanks @krzysztof-grzybek!
Since the PR was merged, this can be closed, right?
Fixed via #1357
No branches or pull requests
Minimal reproduction of the bug/regression with instructions:
The following command:
ng generate @ngrx/schematics:feature customName
generates effects file:
Expected behavior:
I think that instead of
loadFoos$
it should beloadCustomNames$
:Versions of NgRx, Angular, Node, affected browser(s) and operating system(s):
"@ngrx/schematics": "^6.1.0",
"@angular/core": "^6.1.0",
node: 10.9.0
Other information:
I would be willing to submit a PR to fix this issue
[x] Yes (Assistance is provided if you need help submitting a pull request)
[ ] No
The text was updated successfully, but these errors were encountered: