switchMap
with useObservable
comes back as empty every time.
#279
Unanswered
izakfilmalter
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Version info
React:
0.0.0-experimental-94c0244ba
Firebase:
7.19.1
ReactFire:
2.0.3
Other (e.g. Node, browser, operating system) (if applicable):
Test case
I am trying to do a nested lookup and then pass it into
useObservable
. I can get it working if I subscribe directly and save to local state, but it seems like there is an issue with usingswitchMap
andsuspeneseSubject
, specifically it seems liketap
is not firing correctly. This is probably an issue with my code and notsuspenseSubject
, still really new to RXJS.Copied this pattern from the rxfire lib: https://github.com/firebase/firebase-js-sdk/blob/2245ad737ac60149dea0f24b682a9dac498759be/packages/rxfire/README.md#easily-combine-multiple-firebase-data-sources
What should I do instead?
Beta Was this translation helpful? Give feedback.
All reactions