actions.js
2 years ago
constants.js
2 years ago
dispatchers.js
2 years ago
index.js
2 years ago
reducer.js
2 years ago
selectors.js
2 years ago
actions.js
29 lines
| 1 | import constants from './constants'; |
| 2 | |
| 3 | export default { |
| 4 | register( items ) { |
| 5 | return { |
| 6 | type: constants.register, |
| 7 | items, |
| 8 | }; |
| 9 | }, |
| 10 | addRenderState( item ) { |
| 11 | return { |
| 12 | type: constants.addRenderState, |
| 13 | item, |
| 14 | }; |
| 15 | }, |
| 16 | addRenderStates( items ) { |
| 17 | return { |
| 18 | type: constants.addRenderStates, |
| 19 | items, |
| 20 | }; |
| 21 | }, |
| 22 | deleteRenderStates( items ) { |
| 23 | return { |
| 24 | type: constants.deleteRenderStates, |
| 25 | items, |
| 26 | } |
| 27 | } |
| 28 | |
| 29 | }; |