File tree Expand file tree Collapse file tree 2 files changed +0
-22
lines changed Expand file tree Collapse file tree 2 files changed +0
-22
lines changed Original file line number Diff line number Diff line change @@ -126,7 +126,6 @@ export function _useFirestoreRef(
126126 )
127127 }
128128
129- // FIXME: force once on server
130129 unbind = ( isDocumentRef ( docRefValue ) ? bindDocument : bindCollection ) (
131130 // @ts -expect-error: cannot type with the ternary
132131 data ,
Original file line number Diff line number Diff line change @@ -71,24 +71,3 @@ export function usePendingPromises(app?: FirebaseApp) {
7171
7272 return p
7373}
74-
75- export function getInitialData (
76- app ?: FirebaseApp
77- ) : Promise < Record < string , unknown > > {
78- app = app || useFirebaseApp ( )
79- const pendingPromises = appPendingPromises . get ( app )
80-
81- if ( ! pendingPromises ) {
82- if ( process . env . NODE_ENV !== 'production' ) {
83- console . warn ( '[VueFire]: No initial data found.' )
84- }
85- return Promise . resolve ( { } )
86- }
87-
88- return usePendingPromises ( app ) . then ( ( keyData ) =>
89- keyData . reduce ( ( initialData , [ key , data ] ) => {
90- initialData [ key ] = data
91- return initialData
92- } , { } as Record < string , unknown > )
93- )
94- }
You can’t perform that action at this time.
0 commit comments