Using selectSignal instead of concatLatestFrom in effects #4820
ducthang-vu
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The documentation tells us:
However, there may be cases when the required metadata is only accessible from state. When state is needed, the RxJS withLatestFrom or the @ngrx/effects [concatLatestFrom](https://ngrx.io/api/operators/concatLatestFrom) operators can be used to provide it.
However, I come to the conclusion that in such cases just using Store#selectSignal method would be more practical and in many cases probably more readable (especially when we need to read many state slices).
Should this be the recommended way to do it?
I understand that maybe mixing signal and observable may be less elegant, but it seems to me that practicality is too great to be ignored.
Beta Was this translation helpful? Give feedback.
All reactions