File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change 11import type { FirebaseApp } from 'firebase/app'
22import { DatabaseReference , Query as DatabaseQuery } from 'firebase/database'
3- import {
4- CollectionReference ,
5- DocumentReference ,
6- Query as FirestoreQuery ,
7- } from 'firebase/firestore'
83import { StorageReference } from 'firebase/storage'
94import {
105 isDatabaseReference ,
116 isFirestoreDataReference ,
127 isFirestoreQuery ,
138 isStorageReference ,
9+ noop ,
1410 _FirestoreDataSource ,
1511 _Nullable ,
1612} from '../shared'
@@ -96,9 +92,12 @@ export function deferInitialValueSetup(
9692 const key = ssrKey || path
9793
9894 if ( key ) {
99- promise . then ( ( value ) => {
100- initialState [ key ] = value
101- } )
95+ promise
96+ . then ( ( value ) => {
97+ initialState [ key ] = value
98+ } )
99+ // avoid permission errors in tests and others
100+ . catch ( noop )
102101 return key
103102 }
104103}
You can’t perform that action at this time.
0 commit comments