Skip to content

update multiple items using batch.commit() returns multiple responses #228

Open
@farzansalimian

Description

What is the current behavior?
We have a list of items. We do a batch update on some of the items using batch.commit();

We would expect a single response for the the batch update. However, we get individual responses for each item updated. This creates an issue in rendering the list. For example, if we do a batch update for 10 items, the list gets rendered 10 times.

We can observe this using Redux DevTools. Below line shows 10 times for a batch update of 10 items:

@@reduxFirestore/DOCUMENT_MODIFIED

Could you help me understand if there is a way to get a single response for each batch update?

What is the expected behavior?
We would expect a single response for the the batch update

Which version of redux-firestore are you using? What about other dependencies?
"redux-firestore": "^0.8.0"
"firebase": "^6.0.2",
"react-redux-firebase": "^2.3.0",

Which environments/browsers are affected by this issue? Did this work in previous versions or setups?
all browsers

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions