You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Untested, but I think it needs to be replaced with firebase.firestore().settings({ timestampsInSnapshots: this.props.useTimestampsInSnapshots}) before Line 26
The text was updated successfully, but these errors were encountered:
react-firestore
version: 0.10.1firebase
version: 5.5.8node
version: 8npm
(oryarn
) version: 1.7 yarnRelevant code or config
What you did:
It seems like the latest version of the package isn't initialising correctly due to how the timestamp settings are being set.
What happened:
Throwing the following error on load:
Firebase: firebase.firestore() takes either no argument or a Firebase App instance. (app/invalid-app-argument).
![image](https://user-images.githubusercontent.com/3466825/48409769-e3536380-e790-11e8-9696-d5c8d4eae291.png)
Suggested solution:
It seems to be caused by this line: https://github.com/green-arrow/react-firestore/blob/master/src/FirestoreProvider.js#L27
Untested, but I think it needs to be replaced with
firebase.firestore().settings({ timestampsInSnapshots: this.props.useTimestampsInSnapshots})
before Line 26The text was updated successfully, but these errors were encountered: