Skip to content

Commit f1a5363

Browse files
Removed timestampsInSnapshots
The following is no longer needed: ``` // Initialize Firestore with timeshot settings firebase.firestore().settings({ timestampsInSnapshots: true }) ``` @firebase/firestore: Firestore (5.9.1): The timestampsInSnapshots setting now defaults to true and you no longer need to explicitly set it. In a future release, the setting will be removed entirely and so it is recommended that you remove it from your firestore.settings() call now.
1 parent 92f7d05 commit f1a5363

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

docs/firestore.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ const firebaseConfig = {
3434

3535
firebase.initializeApp(firebaseConfig)
3636

37-
// Initialize Firestore with timeshot settings
38-
firebase.firestore().settings({ timestampsInSnapshots: true })
3937

4038
// Add BOTH store enhancers when making store creator
4139
const createStoreWithFirebase = compose(

0 commit comments

Comments
 (0)