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