File tree Expand file tree Collapse file tree 4 files changed +11
-9
lines changed Expand file tree Collapse file tree 4 files changed +11
-9
lines changed Original file line number Diff line number Diff line change 4444
4545 Prefix the title of your PR with the issue number.
4646
47- See [ PULL_REQUEST_TEMPLATE.md ] ( PULL_REQUEST_TEMPLATE.md )
47+ See [ Pull Request Template ] ( PULL_REQUEST_TEMPLATE.md )
4848
49497 . Ask one of the main contributors to review your code.
5050
Original file line number Diff line number Diff line change @@ -18,16 +18,18 @@ Tracker [#0001](https://github.com/Natasha08/redux-middleware-workers/issues/000
1818
1919## Affirm Completion Criteria
2020
21- * remove any items which are not applicable*
21+ * remove any items which are not applicable.*
22+ * if all testing items are removed, please provide explanation.*
2223
2324- [ ] This PR has appropriate test coverage.
24- - [ ] This code has been by another developer
25+ - [ ] This PR has been manually tested.
26+ - [ ] This PR has been feature/unit tested.
27+ - [ ] This code has been tested by another developer
2528
2629## Notice of Secondary Effects
2730
2831* Include only relevant notices*
2932
3033- The PROCESS/README/PR TEMPLATE has/have been updated (explain:)
3134- Infrastructure needs have changed.
32- - API interface is needed (issue#)
3335- * Additional Items* (Please add to PR template in this PR if appropriate)
Original file line number Diff line number Diff line change @@ -23,17 +23,17 @@ import firstWorker from 'worker-loader?inline!./first_worker.js';
2323import secondWorker from 'worker-loader?inline!./second_worker.js';
2424import newWorkerMiddleware from 'redux-middleware-workers';
2525
26- const injectObjects = (action, getState) => {
27- const objects = _.get(getState(), 'objects ', []);
28- return { ...action, objects };
26+ const injectTodos = (action, getState) => {
27+ const todos = _.get(getState(), 'todos ', []);
28+ return { ...action, todos };
2929};
3030
3131const injectStore = (action, getState) => {
3232 const store = getState();
3333 return { ...action, store };
3434};
3535
36- const firstWorkerMiddleware = newWorkerMiddleware(new firstWorker(), 'FIRST_WORKER', injectObjects );
36+ const firstWorkerMiddleware = newWorkerMiddleware(new firstWorker(), 'FIRST_WORKER', injectTodos );
3737const secondWorkerMiddleware = newWorkerMiddleware(new appStorage(), 'SECOND_WORKER', injectStore);
3838
3939export default [firstWorkerMiddleware, secondWorkerMiddleware];
Original file line number Diff line number Diff line change 11{
22 "name" : " redux-middleware-workers" ,
3- "version" : " 0.1 .0" ,
3+ "version" : " 1.0 .0" ,
44 "description" : " a multiple workers solution for redux" ,
55 "main" : " dist/middleware.js" ,
66 "scripts" : {
You can’t perform that action at this time.
0 commit comments