You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We ship streamProps helper function from frint-component-utils package, which allows combining values from various sources and then generate a single observable of props.
It uses concatMap operator from RxJS internally.
Possible bug
There is a possibility that with concatMap, we will have some race condition issue.
It is advised to use switchMap instead.
What to do
Write unit tests proving there is a race condition issue with streamProps
If there is, replace concatMap usage with switchMap without breaking the API
The text was updated successfully, but these errors were encountered:
Current situation
We ship
streamProps
helper function fromfrint-component-utils
package, which allows combining values from various sources and then generate a single observable of props.It uses
concatMap
operator from RxJS internally.Possible bug
There is a possibility that with
concatMap
, we will have some race condition issue.It is advised to use
switchMap
instead.What to do
streamProps
concatMap
usage withswitchMap
without breaking the APIThe text was updated successfully, but these errors were encountered: