Skip to content

Commit c40d517

Browse files
committed
fix(rtdb): use ssrKey if given
1 parent 1b0d271 commit c40d517

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/database/useDatabaseRef.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,11 @@ export function _useDatabaseRef(
140140

141141
// only add the first promise to the pending ones
142142
if (initialSourceValue) {
143-
removePendingPromise = addPendingPromise(promise.value, initialSourceValue)
143+
removePendingPromise = addPendingPromise(
144+
promise.value,
145+
initialSourceValue,
146+
options.ssrKey
147+
)
144148
}
145149

146150
if (hasCurrentScope) {

0 commit comments

Comments
 (0)