Skip to content

Commit

Permalink
Decrease size of data chucks in state updates (#35)
Browse files Browse the repository at this point in the history
* Decrease size of data chucks in state updates

* Update github action

---------

Co-authored-by: Kevin Van Leer <[email protected]>
  • Loading branch information
kevinvanleer and Kevin Van Leer authored Feb 22, 2024
1 parent 801d5bc commit e60efbb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
pull_request:
branches:
- main
- 'feature/**'
- 'chore/**'
- 'bugfix/**'

jobs:
ci:
Expand Down
2 changes: 1 addition & 1 deletion src/workflows/fetchCovidData.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const readResponse = createAsyncThunk(
items.push(JSON.parse(line));
}
});
if (items.length > 1e5) {
if (items.length > 5e4) {
dispatch(reducer(items));
items = [];
}
Expand Down

0 comments on commit e60efbb

Please sign in to comment.