Gathering detailed insights and metrics for ember-redux-batched-actions
Gathering detailed insights and metrics for ember-redux-batched-actions
Gathering detailed insights and metrics for ember-redux-batched-actions
Gathering detailed insights and metrics for ember-redux-batched-actions
ember-cli shim for using batched actions in ember-redux
npm install ember-redux-batched-actions
Typescript
Module System
Min. Node Version
Node Version
NPM Version
26.5
Supply Chain
67.9
Quality
63.4
Maintenance
25
Vulnerability
94.4
License
JavaScript (84.41%)
HTML (15.59%)
Total Downloads
765
Last Day
1
Last Week
4
Last Month
15
Last Year
71
MIT License
1 Stars
5 Commits
2 Watchers
1 Branches
2 Contributors
Updated on Sep 27, 2024
Minified
Minified + Gzipped
Latest Version
0.1.0
Package Id
ember-redux-batched-actions@0.1.0
Size
4.84 kB
NPM Version
3.10.3
Node Version
6.4.0
Published on
Mar 03, 2017
Cumulative downloads
Total Downloads
Last Day
-75%
1
Compared to previous day
Last Week
-33.3%
4
Compared to previous week
Last Month
200%
15
Compared to previous month
Last Year
9.2%
71
Compared to previous year
33
Ember CLI shim for redux-batched-actions https://github.com/tshelburne/redux-batched-actions
Import and use!
Be sure that your action is an FSA-compliant action (consider using this addon https://github.com/foxnewsnetwork/ember-redux-actions)
app/components/french-guillotine.js
1import { behead } from 'dummy/actions/beheading'; 2import { batchActions } from 'redux-batched-actions'; 3 4function actionsToDispatch(dispatch) { 5 return { 6 releaseBlade(louis, marie, robbie) { 7 const killAll = [ 8 behead(louis), 9 behead(marie), 10 behead(robbie) 11 ]; 12 dispatch(killAll); 13 } 14 }; 15}
And don't forget to declare what actions are batch-enabled in app/reducers/index.js
:
1import napoleonReducer from 'app/reducers/napoleon'; 2import louis14Reducer from 'app/reducers/louis-14'; 3import beheadingReducer from 'app/reducers/beheading'; 4import { enableBatching } from 'redux-batched-actions'; 5 6export default { 7 empire: napoleonReducer, 8 monarch: louis14Reducer, 9 revolution: enableBatching(beheadingReducer) 10}
Q: Why do I need redux-batched-actions when I already have redux-thunk? A: redux-batched-actions have the advantage that, at the end of the day, only 1 action is being thrown into the redux system, therefore, there is only 1 subscribe update cycle that gets run. While this isn't a big deal if your thunks are small, you're on glimmer, and you're on a multi-core system that can leverage concurrency, but if you're on a single-core system without glimmer your entire UI thread will hang for a good minute if you're processing large amounts of data and populating your redux store with it. Batched-actions resolve this problem handily. If you're not doing async work, it's better to batch then thunk!
git clone <repository-url>
this repositorycd ember-redux-batched-actions
npm install
bower install
ember serve
npm test
(Runs ember try:each
to test your addon against multiple Ember versions)ember test
ember test --server
ember build
For more information on using ember-cli, visit https://ember-cli.com/.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
no SAST tool detected
Details
Reason
Found 0/5 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2025-05-05
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More