From 9429194d9dfed9a4b37129661d230ebcd0071e89 Mon Sep 17 00:00:00 2001 From: christhompsongoogle <106194718+christhompsongoogle@users.noreply.github.com> Date: Thu, 3 Aug 2023 13:25:27 -0700 Subject: [PATCH] Update to Firebase v9.23 in devDependencies (#589) --- example/withSuspense/Firestore.tsx | 4 ++-- example/withoutSuspense/Firestore.tsx | 6 ++---- package.json | 2 +- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/example/withSuspense/Firestore.tsx b/example/withSuspense/Firestore.tsx index c002f1a2..39eaa3b4 100644 --- a/example/withSuspense/Firestore.tsx +++ b/example/withSuspense/Firestore.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import { useEffect, useState, useTransition } from 'react'; +import { useState, useTransition } from 'react'; import { FirestoreProvider, SuspenseWithPerf, @@ -13,7 +13,7 @@ import { WideButton } from '../display/Button'; import { CardSection } from '../display/Card'; import { LoadingSpinner } from '../display/LoadingSpinner'; import { AuthWrapper } from './Auth'; -import { initializeFirestore, doc, collection, enableIndexedDbPersistence, increment, updateDoc, orderBy, query, addDoc, deleteDoc, DocumentData } from 'firebase/firestore'; +import { initializeFirestore, doc, collection, enableIndexedDbPersistence, increment, updateDoc, orderBy, query, addDoc, deleteDoc } from 'firebase/firestore'; const Counter = () => { const firestore = useFirestore(); diff --git a/example/withoutSuspense/Firestore.tsx b/example/withoutSuspense/Firestore.tsx index 2acdd7b7..39f48f3c 100644 --- a/example/withoutSuspense/Firestore.tsx +++ b/example/withoutSuspense/Firestore.tsx @@ -1,12 +1,10 @@ -import * as React from 'react'; import { useState } from 'react'; -import { FirestoreProvider, useFirebaseApp, useFirestore, useFirestoreCollectionData, useFirestoreDocData, useFirestoreDocDataOnce, useInitFirestore } from 'reactfire'; +import { FirestoreProvider, useFirestore, useFirestoreCollectionData, useFirestoreDocData, useFirestoreDocDataOnce, useInitFirestore } from 'reactfire'; import { WideButton } from '../display/Button'; import { CardSection } from '../display/Card'; import { LoadingSpinner } from '../display/LoadingSpinner'; import { AuthWrapper } from './Auth'; -import { initializeFirestore, doc, collection, enableIndexedDbPersistence, increment, updateDoc, orderBy, query, addDoc, DocumentData } from 'firebase/firestore'; -import { getFirestore } from 'firebase/firestore'; +import { initializeFirestore, doc, collection, enableIndexedDbPersistence, increment, updateDoc, orderBy, query, addDoc } from 'firebase/firestore'; const Counter = () => { const firestore = useFirestore(); diff --git a/package.json b/package.json index 7c5e1d4f..b9c0bb78 100644 --- a/package.json +++ b/package.json @@ -87,7 +87,7 @@ "eslint-plugin-no-only-tests": "^3.1.0", "eslint-plugin-react": "^7.32.2", "eslint-plugin-react-hooks": "^4.6.0", - "firebase": "^9.9.0", + "firebase": "^9.23.0", "firebase-tools": "^12.4.0", "globalthis": "^1.0.3", "husky": "^8.0.3",