We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45dd95d commit 7beed94Copy full SHA for 7beed94
src/service-module/service-module.actions.ts
@@ -289,6 +289,8 @@ export default function makeServiceActions(service: Service<any>) {
289
const toRemove = []
290
const { idField, autoRemove } = state
291
292
+ const disableRemove = response.disableRemove || !autoRemove
293
+
294
list.forEach(item => {
295
const id = getId(item, idField)
296
const existingItem = state.keyedById[id]
@@ -298,7 +300,7 @@ export default function makeServiceActions(service: Service<any>) {
298
300
}
299
301
})
302
- if (!isPaginated && autoRemove) {
303
+ if (!isPaginated && !disableRemove) {
304
// Find IDs from the state which are not in the list
305
state.ids.forEach(id => {
306
if (!list.some(item => getId(item, idField) === id)) {
0 commit comments