contactually / contactually/redux-capacitor

'Total' goes to 0 after responseStrategy subtract

Open
#34 1 comment 0 reactions 0 assignees View on GitHub
open discussion
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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.