reactfire icon indicating copy to clipboard operation
reactfire copied to clipboard

preloadFirestore param

Open stevenkaspar opened this issue 5 years ago • 2 comments

https://github.com/FirebaseExtended/reactfire/blob/848eaa3c6993221c52d81c86c68700130a2d27f2/sample/src/App.js#L41

I think this should be preloadFirestore({ firebaseApp }, (firestore) => {

I get undefined name when following docs example

stevenkaspar avatar Dec 12 '20 13:12 stevenkaspar

Hey @stevenkaspar, looks like you're referencing an older version of the sample. The current version calls it correctly: https://github.com/FirebaseExtended/reactfire/blob/8d36acdbfa69afbdf38c529abe7ac96bc9a83715/example/withSuspense/App.tsx#L26-L31

Was there a spot in the docs that linked you to the old version? If so, please file a new issue so we can clean that up

jhuleatt avatar Dec 14 '20 23:12 jhuleatt

Hey @jhuleatt, I got to the old version from https://github.com/FirebaseExtended/reactfire/issues/235#issuecomment-602695851. It'd be nice to have the reference updated over there :]

guytepper avatar Jan 02 '21 08:01 guytepper