n6g7 / redux-saga-firebase

A redux saga integration for firebase.
https://redux-saga-firebase.js.org/
MIT License
284 stars 57 forks source link

When I use `snapshot.value()` does it mean I run `value()` two times? #469

Open nkpgardose opened 4 years ago

nkpgardose commented 4 years ago

https://github.com/n6g7/redux-saga-firebase/blob/266874d09799a42a7f085990d894fb7552d16b3d/src/database.js#L46

nkpgardose commented 4 years ago

Does this mean that if I use snapshot.forEach(trade => trade.val()), I double request on RTDB? because dataSnapshot.val() don't respect orderByChild and forces me to useforEach(val)