Skip to content

Commit 868ca58

Browse files
committed
fix exports
1 parent 0935873 commit 868ca58

File tree

3 files changed

+20
-9
lines changed

3 files changed

+20
-9
lines changed

README.md

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,26 @@
1-
# redux-compose
1+
# redux-compose-async
22

33
create a [reducks module](https://github.com/erikras/ducks-modular-redux) in seconds with these little helpers
44

5+
## Installation
6+
7+
### yarn
8+
```bash
9+
yarn add redux-compose-async
10+
```
11+
12+
### npm
13+
```bash
14+
npm add redux-compose-async
15+
```
16+
517
## Example
618

719
### Reducks Module
820
my-store.js
921
```js
10-
import { createActionCreator, createActionParents } from 'dominikstoetter/redux-compose/actions'
11-
import { createDataReducer } from 'dominikstoetter/redux-compose/reducer'
12-
import { createFetchSaga, createRootSaga } from 'dominikstoetter/redux-compose/sagas'
22+
import { createFetchSaga, createRootSaga, createDataReducer, createActionCreator, createActionParents } from 'redux-compose-async'
23+
1324

1425
export const { FETCH_FROM_MY_API } = createActionParents([ 'FETCH_FROM_MY_API' ])
1526
export const fetchFromMyApi = createActionCreator(FETCH_FROM_MY_API)
@@ -32,7 +43,7 @@ with-my-store.js
3243
```js
3344
import { connect } from 'react-redux'
3445
import { fetchFromMyApi } from './my-store.js'
35-
import { promisifyActionCreator } from 'dominikstoetter/redux-compose/actions'
46+
import { promisifyActionCreator } from 'redux-compose-async'
3647

3748
export default connect(
3849
({ myStore }) => ({ myStore: { ...myStore } }),

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "redux-compose-async",
3-
"version": "0.1.4",
3+
"version": "0.1.5",
44
"main": "src/index.js",
55
"repository": "git@github.com:dominikstoetter/redux-compose.git",
66
"author": "<dominik.stoetter@8select.de>",

src/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const reducer = require('../lib/reducer')
33
const sagas = require('../lib/sagas')
44

55
module.exports = {
6-
actions,
7-
reducer,
8-
sagas,
6+
...actions,
7+
...reducer,
8+
...sagas,
99
}

0 commit comments

Comments
 (0)