contactually / contactually/redux-capacitor
'Total' goes to 0 after responseStrategy subtract
- Dominant language
- JavaScript
- Stars
- 9
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
Maybe need to verify this further, but the behavior I was noticing was something like this...
```js
collection.performAction('update', {
itemId: user.id,
data: {status: 'active'},
responseStrategy: 'subtract'
})
```
Result:
`collection.total => 0`
`collection.items.size => 20`
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the collection.performAction('update', ...) example with responseStrategy set to 'subtract', comparing collection.total with collection.items.size. Inspect the implementation of performAction and the subtract strategy to determine why total becomes 0, then add or update coverage so the total remains consistent with the collection after the response.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react
- Domain
- api, frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100