@@ -23,15 +23,15 @@ export function useDatabaseSnapshot<R = DataSnapshot>(
23
23
[ ref ]
24
24
) ;
25
25
26
- return useSubscription < DataSnapshot , Error , R > (
26
+ return useSubscription < DataSnapshot , Error , R > (
27
27
queryKey ,
28
- [ ' useDatabaseSnapshot' , queryKey ] ,
28
+ [ " useDatabaseSnapshot" , queryKey ] ,
29
29
subscribeFn ,
30
30
{
31
31
...useQueryOptions ,
32
32
onlyOnce : ! isSubscription ,
33
33
fetchFn : async ( ) => get ( ref ) ,
34
- } ,
34
+ }
35
35
) ;
36
36
}
37
37
@@ -74,14 +74,15 @@ export function useDatabaseValue<T = unknown | null, R = T>(
74
74
[ ref ]
75
75
) ;
76
76
77
- return useSubscription < T , Error , R > (
77
+ return useSubscription < T , Error , R > (
78
78
queryKey ,
79
- [ ' useDatabaseValue' , queryKey ] ,
79
+ [ " useDatabaseValue" , queryKey ] ,
80
80
subscribeFn ,
81
81
{
82
82
...useQueryOptions ,
83
83
onlyOnce : ! isSubscription ,
84
- fetchFn : async ( ) => parseDataSnapshot ( await get ( ref ) , ! ! options ?. toArray ) ,
85
- } ,
84
+ fetchFn : async ( ) =>
85
+ parseDataSnapshot ( await get ( ref ) , ! ! options ?. toArray ) ,
86
+ }
86
87
) ;
87
88
}
0 commit comments