File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ import {
18
18
_Nullable ,
19
19
UnbindWithReset ,
20
20
checkWrittenTarget ,
21
- isSSR ,
21
+ useIsSSR ,
22
22
noop ,
23
23
ResetOption ,
24
24
} from '../shared'
@@ -59,7 +59,8 @@ export function _useDatabaseRef(
59
59
}
60
60
61
61
// During SSR, we should only get data once
62
- if ( isSSR ( ) ) {
62
+ const isSSR = useIsSSR ( )
63
+ if ( isSSR ) {
63
64
options . once = true
64
65
}
65
66
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ import {
25
25
UnbindWithReset ,
26
26
noop ,
27
27
checkWrittenTarget ,
28
- isSSR ,
28
+ useIsSSR ,
29
29
isDocumentRef ,
30
30
ResetOption ,
31
31
OperationsType ,
@@ -79,7 +79,7 @@ export function _useFirestoreRef(
79
79
}
80
80
}
81
81
82
- if ( isSSR ( ) ) {
82
+ if ( useIsSSR ( ) ) {
83
83
options . once = true
84
84
}
85
85
Original file line number Diff line number Diff line change @@ -272,7 +272,7 @@ export interface _ResolveRejectFn {
272
272
*
273
273
* @internal
274
274
*/
275
- export function isSSR ( ) : boolean {
275
+ export function useIsSSR ( ) : boolean {
276
276
return ! ! ( getCurrentInstance ( ) && inject ( ssrContextKey , null ) )
277
277
}
278
278
You can’t perform that action at this time.
0 commit comments