-
-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(logging): show collection in errors #643
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -762,6 +762,7 @@ | |
}; | ||
} | ||
|
||
const MAX_MULTI_ACTION = 15; | ||
/** | ||
* Dispatch action(s) response from listener response. | ||
* @private | ||
|
@@ -791,7 +792,7 @@ | |
? docData.docChanges() | ||
: docData.docChanges; | ||
// Dispatch different actions for doc changes (only update doc(s) by key) | ||
if (docChanges && docChanges.length < docData.size) { | ||
if (docChanges && docChanges.length < Math.min(MAX_MULTI_ACTION, docData.size)) { | ||
Check failure on line 795 in src/utils/query.js
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Where does this max of 15 come from? We should note this in docs and make it an option if it isn't an amount enforced in firebase |
||
// Loop to dispatch for each change if there are multiple | ||
// TODO: Option for dispatching multiple changes in single action | ||
docChanges.forEach((change, index) => { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍