Skip to content

Commit 7ffc451

Browse files
authored
v0.5.6
* fix(orderedReducer): use direct payload instead of `unionBy` with existing state when `storeAs` is provided in `LISTENER_RESPONSE` dispatch
2 parents c12daea + 7c0f1a4 commit 7ffc451

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "redux-firestore",
3-
"version": "0.5.5",
3+
"version": "0.5.6",
44
"description": "Redux bindings for Firestore.",
55
"main": "lib/index.js",
66
"module": "es/index.js",

src/reducers/orderedReducer.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ function writeCollection(collectionState, action) {
135135
return [];
136136
}
137137
return meta.storeAs
138-
? unionBy(action.payload.ordered, collectionState, 'id') // new as source
138+
? action.payload.ordered
139139
: unionBy(collectionState, action.payload.ordered, 'id');
140140
}
141141

0 commit comments

Comments
 (0)