Skip to content

Commit

Permalink
fix: fixed provider support in cache reducer
Browse files Browse the repository at this point in the history
  • Loading branch information
Bobby authored Jul 28, 2021
1 parent 582063a commit 74a1306
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/reducers/cacheReducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -585,6 +585,8 @@ function translateMutationToOverrides({ payload }, db) {
let reader = {};
if (reads) {
reader = Object.keys(reads).reduce((result, key) => {
if (isFunction(result[key])) return {...result, [key]: result[key]() };

const { collection, doc } = result[key];
if (!doc) {
throw new Error("Firestore Transactions don't support query lookups.");
Expand Down

0 comments on commit 74a1306

Please sign in to comment.