File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed
Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -132,7 +132,11 @@ export function _useFirestoreRef(
132132 // only add the first promise to the pending ones
133133 // TODO: can we make this tree shakeable?
134134 if ( initialSourceValue ) {
135- removePendingPromise = addPendingPromise ( promise . value , initialSourceValue )
135+ removePendingPromise = addPendingPromise (
136+ promise . value ,
137+ initialSourceValue ,
138+ options . ssrKey
139+ )
136140 }
137141
138142 // TODO: SSR serialize the values for Nuxt to expose them later and use them
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ export function addPendingPromise(
4242 } else {
4343 // TODO: warn if in SSR context in other contexts than vite
4444 if ( process . env . NODE_ENV !== 'production' /* && import.meta.env?.SSR */ ) {
45- console . warn ( '[VueFire]: Could not get the path of the data source' )
45+ console . warn ( '[VueFire SSR ]: Could not get the path of the data source' )
4646 }
4747 }
4848
Original file line number Diff line number Diff line change @@ -307,10 +307,12 @@ describe(
307307 }
308308
309309 it ( 'can be bound to a ref of a query' , async ( ) => {
310- const { showFinished, listToDisplay } = await createFilteredLists ( )
310+ const { showFinished, listToDisplay, listRef } =
311+ await createFilteredLists ( )
311312
312313 const { wrapper, data, promise } = factoryQuery ( {
313314 ref : listToDisplay ,
315+ options : { ssrKey : 'list' } ,
314316 } )
315317
316318 await promise . value
You can’t perform that action at this time.
0 commit comments