Skip to content

Commit d9ad3fe

Browse files
committed
chore: format and lint
1 parent a54b132 commit d9ad3fe

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

packages/database/src/useDatabaseSnapshot.ts

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ export function useDatabaseSnapshot<R = DataSnapshot>(
2323
[ref]
2424
);
2525

26-
return useSubscription<DataSnapshot, Error, R>(
26+
return useSubscription<DataSnapshot, Error, R>(
2727
queryKey,
28-
['useDatabaseSnapshot', queryKey],
28+
["useDatabaseSnapshot", queryKey],
2929
subscribeFn,
3030
{
3131
...useQueryOptions,
3232
onlyOnce: !isSubscription,
3333
fetchFn: async () => get(ref),
34-
},
34+
}
3535
);
3636
}
3737

@@ -74,14 +74,15 @@ export function useDatabaseValue<T = unknown | null, R = T>(
7474
[ref]
7575
);
7676

77-
return useSubscription<T, Error, R>(
77+
return useSubscription<T, Error, R>(
7878
queryKey,
79-
['useDatabaseValue', queryKey],
79+
["useDatabaseValue", queryKey],
8080
subscribeFn,
8181
{
8282
...useQueryOptions,
8383
onlyOnce: !isSubscription,
84-
fetchFn: async () => parseDataSnapshot(await get(ref), !!options?.toArray),
85-
},
84+
fetchFn: async () =>
85+
parseDataSnapshot(await get(ref), !!options?.toArray),
86+
}
8687
);
8788
}

0 commit comments

Comments
 (0)