Skip to content

fix(schematics): type actions and avoid endless loop in effect#1576

Merged
brandonroberts merged 1 commit intongrx:masterfrom
fmalcher:fix-schematics-effectloop
Feb 26, 2019
Merged

fix(schematics): type actions and avoid endless loop in effect#1576
brandonroberts merged 1 commit intongrx:masterfrom
fmalcher:fix-schematics-effectloop

Conversation

@fmalcher
Copy link
Contributor

Two minor fixes for effects generated by ng g feature:

  • Make the generated effect for 'ng g feature' harmless by not dispatching any action
  • type the 'Actions' injectable by default in feature effect

Closes #1573

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

[x] Bugfix
[ ] Feature
[x] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Other... Please describe:

Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information

@coveralls
Copy link

coveralls commented Feb 21, 2019

Coverage Status

Coverage increased (+0.01%) to 89.527% when pulling 9115c3e on fmalcher:fix-schematics-effectloop into 63b6ff9 on ngrx:master.

@ngrxbot
Copy link
Collaborator

ngrxbot commented Feb 21, 2019

Preview docs changes for 1afec52 at https://previews.ngrx.io/pr1576-1afec52/

1 similar comment
@ngrxbot
Copy link
Collaborator

ngrxbot commented Feb 21, 2019

Preview docs changes for 1afec52 at https://previews.ngrx.io/pr1576-1afec52/

Make the generated effect for 'ng g feature'  harmless by not dispatching any action
type the 'Actions' injectable by default in effect

Closes #1573
@ngrxbot
Copy link
Collaborator

ngrxbot commented Feb 22, 2019

Preview docs changes for 9115c3e at https://previews.ngrx.io/pr1576-9115c3e/

@brandonroberts brandonroberts merged commit 5fbcb3c into ngrx:master Feb 26, 2019
tja4472 pushed a commit to tja4472/platform that referenced this pull request Mar 20, 2019
…tic (ngrx#1576)

- Make the generated effect for 'ng g feature'  harmless by not dispatching any action.
- Type the 'Actions' Injectable by default in effect

Closes ngrx#1573
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Schematics: Default effect leads to an endless loop

5 participants