Skip to content
New issue

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

fix(component-store): accept error type in tapResponse with strict generic checks #3068

Conversation

markostanimirovic
Copy link
Member

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

[x] Bugfix
[ ] Feature
[ ] 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:

What is the current behavior?

tapResponse cannot accept error type when noStrictGenericChecks is false.

This bug is reported here.

What is the new behavior?

tapResponse accepts error type when noStrictGenericChecks is false.

Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information

Added unit and type tests for tapResponse operator.

@ngrxbot
Copy link
Collaborator

ngrxbot commented Jul 10, 2021

Preview docs changes for ab8e938 at https://previews.ngrx.io/pr3068-ab8e9387/

@markostanimirovic markostanimirovic force-pushed the fix/component-store/tap-response-error-type branch from 97f065b to ab8e938 Compare July 10, 2021 15:13
import { tapResponse } from '@ngrx/component-store';
import { concatMap, finalize } from 'rxjs/operators';

describe('tapResponse', () => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for writing these 👍

@brandonroberts brandonroberts merged commit 3e02e37 into ngrx:master Jul 12, 2021
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.

4 participants