Questions tagged [rxfire]

19 questions
0
votes
1 answer

Error in epic with redux-observable and rxjs

I'm trying to create an epic that fetches data from firestore using rxfire. On every emission of a value, an action needs to be dispatched. My codes looks like this: const fetchMenu = (action$, _state$) => { return action$.pipe( …
0
votes
1 answer

How do I force an observeable to complete?

Kind of a niche question, but I know what the issue is so hopefully someone here can help me out. This is an Observable/RXFire issue, not an xstate issue. I have this machine that invokes an observable: export const tribeMachine = Machine( { …
Iskeraet
  • 731
  • 1
  • 6
  • 12
0
votes
1 answer

How do I convert an observable that emits an array into an observable that emits each value of the array individually?

I'm using RXFire and RXJS. collectionData(firebase.firestore.collection('collectionname')).subscribe(x=>console.log(x) returns // [{document1}, {document2}] What i'd like is an observable that returns // {document1} // {document2} I've tried…
Iskeraet
  • 731
  • 1
  • 6
  • 12
0
votes
0 answers

How to use RxJS BehaviorSubject with Sapper SSR?

If I use the standard Sapper getting started routine: npx degit "sveltejs/sapper-template#rollup" my-app npx degit "sveltejs/sapper-template#webpack" my-app cd my-app npm install npm run dev & open http://localhost:3000 I have "great success". In…
Chris Eveland
  • 323
  • 2
  • 8
1
2