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, "about-to-be-created-from-a-background-function" doc:
const davidDocRef = db.doc('users/david');
// meantime, a firebase function creates "users/david" doc in the background
// I am observing for changes to the firestore doc in my React Component:
useEffect(() => {
docData(davidDocRef,'uid').subscribe(userData => setUserId(userData.uid));
...
// I then check that orgId is not null by assuming that I will get back a doc.id after it has been created it in Firestore
The problem is that userData.uid always returns "david" regardless of the doc being created in Firestore. What am I doing wrong? It seems like it’s returning the uid from the path I’ve set in the reference instead of an actual document path that has been (or should have been) created in firestore. When I change the reference to look for "users/foo" then userData.uid still returns "foo" instead of undefined or throughing an error.
In this case I can instead look for userData.name. This actually works as I get "undefined" if the document has not been stored in Firestore or "David" if it has, but I would expect the example above to work in a similar manner.
http://dapoxetineus.com buy priligy
http://wardenafil.com levitra commercial
http://himscanada.com/ tadalafil price walmart
http://cialisay.com can i buy cialis online in canada
http://kamagradr.com does kamagra work
prednisone 20mg for sale – generic prednisone prednisone 1 mg tablet
https://stromectolhumans.com/ que es la ivermectina
https://iwermectin.com/ ivermectin
http://viagraxyu.com viagra store usa
https://ivermectineffects.com/ stromectol
http://ivermectinovercounter.com/ ivermectin
canadian viagra 200 mg – buy sildenafil mexico how can i get viagra in canada
http://ivermectineffects.com stromectol
teens learn how to take blood pressure ed medications
ivermectin over the counter https://ivermectinhome.com
http://ivermectinus.com/ ivermectina uso umano prezzo
http://zithrozpack.com/ azithromycin
freedom life health insurance blood pressure chart for men over 60
stromectol 3mg tablets for head lice https://ivermectinhome.com
levitra vs cialis vs viagra reviews http://levitrair.com viagra vs levitra
georgia public health department when will senate take final vote on healthcare
ivermectin tablets https://ivermectinhome.com
ivermectin https://stromectolus.com ivermectina oral
https://albuterolotc.com/ ventolin inhaler cost usa
2018 health insurance penalty 2.5 of gross income obamacare plans
where to buy ivermectin https://ivermectinhome.com
ivermectin tablets http://stromectolus.com stromectol
the state which has by far the largest number of hiv/aids cases in its prisons is: dr on the doctors
buy ivermectin online canada https://ivermectinhome.com
ivermectin no prescription https://ivermcov.com/# stromectol
primary care physician open saturday https://ventolinhfaer.com/ does albuterol work immediately
javascript-help.li reviewed top rated online canadian pharmacies http://pharmvolk.com top over the counter medications
where can you get health insurance reading blood pressure results
ivermectin use in mexico https://ivermectinhome.com
buy cytotec pills online cheap – gncytotecp how to get cytotec in usa
javascript-help.li and ivermectina bula https://ivermectini.com ivermectin tablets
how to get doxycycline online – doxycycline 100 mg cap over the counter doxycycline 100mg pills
neurontin medication – gnneurontin.com synthroid 50 mg
what health insurance ivermectina http://iveramectin.com ivermectin for humans
online hiv aids course https://dapoxetineus.com/ dapoxetine tablets 60 mg
javascript-help.li and ivermectin http://ivermectiny.com ivermectin for humans for sale
cialis from india online pharmacy – cialis medication cost 20 mg cialis daily
buy vardenafil canada – vardenafil 5 mg vardenafil 20 mg
prednisone nz – prednisone nz brand name drug prednisone
viagra without a doctor prescription http://viagrob.com viagra pills buy
accutane buy india – accutane coupon accutane generic
buy amoxicillin 500 mg from canada – amoxicilin usa buy amoxicilin online
javascript-help.li with ivermectin generic cream http://ivermectinhum.com stromectol reino unido
research papers writing – law essay help essays for sale online
viagra by mail – Low cost viagra viagra from mexico to usa
javascript-help.li and ivermectin for humans http://stromectl.com stromectol 3mg
ivermectin for sale stromectol cost https://stromectl.com ivermectin side effects
ivermectin cream cost – ivermectin uk stromectol price uk
prednisone side effects – buying prednisone on line prednisone 7.5 mg daily
furosemide 20 mg tablet price – clomiphene online furosemide 160 mg daily
javascript-help.li vs ivermectin tablets dosage https://ivermectiny.com ivermectin tablets
buy albuterol online – site albuterol without prescription
ivermektinovГЅ koronavirus http://ivermectin1.com/ ivermectin for humans amazon
http://viawithoutdctrs.com – cost of viagra at costco
azithromycin pills 250 mg https://azithrozpack.com zithromax z pak side effects
cheap tadalafil – buy tadalafil online buy tadalafil 20mg price
purchase essays online – help with my assignment how to write my thesis
http://tadalafilrembo.com – cialis 5mg cost
purchase sildenafil citrate 100mg – cheap viagra generic cialis tablets 20mg price in india
https://ivrmectin.com – ivermectin
buy vardenafil online overnight delivery – levitra usa pills erectile dysfunction
hydroxychloroquine reviews – hydroxychloroquine prednisone 54092
stromectol canada http://stromectolforte.com/ ivermectine 1% crГЁme generiek avermectin
xenical generic name – generic xenical alli blue pill orlistat 60
ivermectin pills human – stromectol human stromectol uk buy
generic viagra cost canada – female viagra cheap viagra generic best price
ivermectin over counter http://stromectolforte.com/# ivermectin cream canada cost ivermectin human dose uk
tadalafil 12mg – usa pharmacy cialis 10 mg cost
prednisone 300mg – prednisone vs prednisolone prednisone 20mg buy online
viagra online safe – very cheap viagra generic viagra in us
levitra 10 g http://www.levitraoff.com cuanto vale pastilla levitra
5mg cialis daily use – cialis coupon cvs 3 tadalafil
ivermectin 3mg tablets – stromectol stromectol stromectol pharmacy
purchase viagra online http://viagwdp.com/ generic viagra us pharmacy viagra coupons
ed drugs online – canadian family pharmacy canadian pharmacy online cialis
buy viagra canada fast shipping https://viagwdp.com/ viagra brand female viagra united states
deltasone 20 mg tablet – order prednisone with mastercard debit drug prices prednisone
prednisone 2 mg – predusplus prednisone 50 mg tablet
injectable ivermectin for goats tractor supply ivermectin pour-on
https://www.stromektol.com cost of ivermectin cream ivermectin tablets over counter
ivermectin toxicity where can i buy ivermectin
sildenafil same as viagra voguel sildenafil
ivermectin pills for humans https://stromectol.today/
where to buy sildenafil citrate sildenafil pfizer 100 mg
modafinil brain damage difference between modvigil and provigil? what is provigil copay by unitedhealthcare
thesis defence powerpoint sample readymade thesis in chandigarh
rhetorical analysis essay on newspaper article princess diana essay paper
plaquenil dosing guidelines quineprox 90 does plaquenil caus stiff legs who can do plaquenil test
purchase plaquenil online cheap – valtrex pills valacyclovir 500mg ca
sildalis sale – buy fluconazole pills purchase metformin pill
oral ampicillin 250mg – order ampicillin 500mg online cost plaquenil 400mg
purchase plaquenil online cheap – purchase hydroxychloroquine without prescription plaquenil 200mg for sale
buy sildenafil generic – cialis 20mg generic tadalafil 5mg price
ivermectin 5 – stromectol 12mg tablet stromectol for humans for sale
prednisone 40mg pill – ed pills for sale order prednisone 10mg
tizanidine buy online – prozac 10mg pill colchicine tablet