Skip to content

Commit

Permalink
Updated migration guide
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrwitek committed Sep 20, 2019
1 parent 48fb3f1 commit 8f6b2a4
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1064,18 +1064,7 @@ export type RootState = StateType<typeof rootReducer>;
## Migration Guides
### `v3.x.x` to `v4.x.x`
From `v4.x.x` all action creators will use `undefined` instead of `void` as a generic type parameter to make the action-creator function require NO parameters.
```ts
const increment = createStandardAction('INCREMENT')<undefined>();
increment(); // <= no parameters required

const fetchUsersAsync = createAsyncAction(
'FETCH_USERS_REQUEST',
'FETCH_USERS_SUCCESS',
'FETCH_USERS_FAILURE'
)<undefined, User[], Error>();
fetchUsersAsync.request(); // <= no parameters required
```
No breaking changes!
### `v2.x.x` to `v3.x.x`
`v3.x.x` API is backward compatible with `v2.x.x`. You'll only need to update typescript dependency to `> v3.1`.
Expand Down

0 comments on commit 8f6b2a4

Please sign in to comment.