Skip to content

Commit 74a1306

Browse files
author
Bobby
authored
fix: fixed provider support in cache reducer
1 parent 582063a commit 74a1306

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/reducers/cacheReducer.js

+2
Original file line numberDiff line numberDiff line change
@@ -585,6 +585,8 @@ function translateMutationToOverrides({ payload }, db) {
585585
let reader = {};
586586
if (reads) {
587587
reader = Object.keys(reads).reduce((result, key) => {
588+
if (isFunction(result[key])) return {...result, [key]: result[key]() };
589+
588590
const { collection, doc } = result[key];
589591
if (!doc) {
590592
throw new Error("Firestore Transactions don't support query lookups.");

0 commit comments

Comments
 (0)