feat(effects): resubscribe to effects on error#1881
Merged
Conversation
adjust some spacing
Member
Author
|
Also refactored |
Collaborator
|
Preview docs changes for 8096171 at https://previews.ngrx.io/pr1881-8096171/ |
brandonroberts
requested changes
May 22, 2019
brandonroberts
left a comment
Member
There was a problem hiding this comment.
The git commit message needs to indicate the breaking change also
Co-Authored-By: Brandon <robertsbt@gmail.com>
Collaborator
|
Preview docs changes for c6b9ded at https://previews.ngrx.io/pr1881-c6b9ded/ |
Collaborator
|
Preview docs changes for 1ac0665 at https://previews.ngrx.io/pr1881-1ac0665/ |
timdeschryver
requested changes
May 22, 2019
Co-Authored-By: Tim Deschryver <28659384+timdeschryver@users.noreply.github.com> Co-Authored-By: Brandon <robertsbt@gmail.com>
Collaborator
|
Preview docs changes for 2041346 at https://previews.ngrx.io/pr1881-2041346/ |
Collaborator
|
Preview docs changes for cf21508 at https://previews.ngrx.io/pr1881-cf21508/ |
timdeschryver
approved these changes
May 23, 2019
brandonroberts
approved these changes
May 23, 2019
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
When Errors happen in the main Actions stream that error is reported and the stream is closed
Closes # #1851
What is the new behavior?
For
{dispatch: true}, which is the default Effect option, if the error occurs in the main actions stream, the effect will be resubscribed. This could result in unusual behavior (in cases where operators likestartWithare used).Resubscriptions can be turned off by setting
{resubscribeOnError: false}in the effect metadata.Does this PR introduce a breaking change?
BREAKING CHANGE:
Prior to introduction of automatic resubscriptions on errors, all effects had effectively
{resubscribeOnError: false}behavior. For the rare cases when this is still wanted please add{resubscribeOnError: false}to the effect metadata.BEFORE:
AFTER:
Other information