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

Why is switchMap/CatchError needed here? #19

Open
wlans opened this issue Mar 16, 2018 · 0 comments
Open

Why is switchMap/CatchError needed here? #19

wlans opened this issue Mar 16, 2018 · 0 comments

Comments

@wlans
Copy link

wlans commented Mar 16, 2018

https://github.com/UltimateAngular/ngrx-store-effects-app/blob/8e859d1838d89fe833138e0a5a89ae0b0eebad3f/src/products/guards/toppings.guard.ts#L17

On lines 17 and 18 you do a switchMap and catchError. I have been trying to understand why for a while now. This checkStore function is subscribed to the store not the outbound HTTP call so in what case would it throw an error?

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

No branches or pull requests

1 participant