Questions tagged [rxfire]

19 questions
4
votes
1 answer

How can I join two Firestore queries using rxfire and rxjs (OR query)

The goal is simple: to join two firestore queries utilizing rxjs, rxfire, and the rnfirebase react native library. I've read multiple tutorials 1, 2 on joining queries, but they all fail with different errors. //Simple test for collectionData import…
TIMEX
  • 259,804
  • 351
  • 777
  • 1,080
3
votes
2 answers

AngularFire Auth Persistence cannot be invoked without 'new'

I'm trying to impliment auth with persistance in angularfire with this code: constructor(private auth: Auth, private router: Router) { if (auth.currentUser) this.router.navigate(this.redirect); } async loginWithGoogle() { const provider…
3
votes
1 answer

Error: storage/object-not-found when trying to upload large image file

I'm getting an error : storage/object-not-found when trying to upload a large image file in Google Cloud Storage using RxFire. They say the image is not found in the bucket but when I check, i see them! I tested with small images (100kb likely...)…
2
votes
0 answers

How to avoid redundantly downloading data when using switchMap and inner observables in RxFire?

I have some RxFire code that listens to a Firestore collection query (representing channels) and, for each of the results, listens to a Realtime Database ref for documents (representing messages in that channel). The problem I'm running into is that…
1
vote
1 answer

ASTRO / Svelte / Rxfire: Named export 'collectionData' not found

I try to build my astro application. I have one component using svelte and rxFire, but when i try to build id, i receive this error. Try the suggestion bring me to another error like "default member is not exported". It can be a bug from firebase v9…
nevradub
  • 238
  • 1
  • 9
1
vote
0 answers

Rxfire object not allowing firebase reference as a parameter

Good day, I'm trying to use rxfire to combine multiple Firebase data sources, The code below should stream a list of "cities" from Realtime database and then retrieves their image from a Cloud Storage bucket. I'm following through the official docs…
1
vote
1 answer

rxfire subscription not firing in componentdidmount

I am using rxfire to combine data from firestore in componentdidmount: store$.pipe( withLatestFrom(items$), map(([store, items]) => ({ items, ...store })), ).pipe( withLatestFrom(categories$), …
Aggounix
  • 251
  • 5
  • 15
1
vote
1 answer

How does RxFire handels firestore queries

This js reduce works fine to handle the query result: function toc(current) { return {....}; }; function getToc(data) { return = data.reduce((a, c) => Object.assign(a, {[c.id]: toc(c)}), {}); }; const query =…
voscausa
  • 11,253
  • 2
  • 39
  • 67
1
vote
2 answers

Subscribe to a doc using Svelte / RxJs / RxFire. How can I update the subscription

I use a derived store in the code below. It feels like a strange construct because I only use the derived construct for the dynamic $session dependency and to get the normData. But not with $norm. I use $norm only once to kick off the derived…
voscausa
  • 11,253
  • 2
  • 39
  • 67
1
vote
1 answer

RxJs Is it possible to solve this kind of pivot table problem

I'm new to RxJs. Is it possible to solve this type of pivot table problem. Suppose I have a stream with any number of items. Each item is a number between 0 and 999. I'd like to make a table from this stream. A table with 10 columns. The…
voscausa
  • 11,253
  • 2
  • 39
  • 67
1
vote
1 answer

How to merge and observe two collections in Firestore based on reference ID in documents?

I'm creating a StencilJS app (no framework) with a Google Firestore backend, and I want to use the RxFire and RxJS libraries as much as possible to simplify data access code. How can I combine into a single observable stream data coming from two…
1
vote
1 answer

Trouble using catchError with RxFire firestore collectionData

I want to be able to respond to errors from a call to collectionData. I added a catchError but it never gets called. In fact, the collectionData emits a result with no elements. export const bundleEpic = action$ => action$.pipe( …
Duane
  • 273
  • 1
  • 11
1
vote
2 answers

Combine Observables into a single Observable from a dynamic array of Observable?

Summary: essentially I need something like from Users where usergroupIds in [1,3,5]. Given usergroupIds$ emit an array of group IDs [1,3,5] I want to union all users by userids in usergroupIds and combine the userIds (distinct) Here is what I came…
Henry
  • 32,689
  • 19
  • 120
  • 221
0
votes
3 answers

sapper with firebase - fetch not defined

I am getting this error when running npm run dev registerFunctions(firebase$1, fetch.bind(self)); ^ ReferenceError: fetch is not defined I figured rxfire doesn't import fetch, so I add this line to…
Jonathan
  • 3,893
  • 5
  • 46
  • 77
0
votes
1 answer

How to check that a document has been created in Firestore with RxFire

In my React app, I want to check whether a background firebase function has created the document in Firestore before updating my UI. So I use the docData function from RxFire to subscribe to changes in the specific,…
Stephanos
  • 501
  • 6
  • 15
1
2