redux-toolbelt-saga
Advanced tools
Comparing version 2.0.3 to 2.0.4
@@ -0,0 +0,0 @@ ## v2.0.0 (2017-10-08) |
@@ -0,0 +0,0 @@ 'use strict'; |
{ | ||
"name": "redux-toolbelt-saga", | ||
"version": "2.0.3", | ||
"version": "2.0.4", | ||
"description": "Saga helpers for redux-toolbelt", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -21,3 +21,3 @@ # redux-toolbelt-saga | ||
## Installation | ||
The tools are available in the `redux-toolbelt` npm package. | ||
The tools are available in the [`redux-toolbelt-saga`](https://www.npmjs.com/package/redux-toolbelt-saga) npm package. | ||
```sh | ||
@@ -32,3 +32,3 @@ npm install --save redux-toolbelt redux-toolbelt-saga redux-saga | ||
## Usage | ||
import the functions you like to use using one of the two methods: | ||
You may import the functions you'd like to use using one of the two methods: | ||
```js | ||
@@ -50,3 +50,3 @@ import {makeAsyncActionCreator} from 'redux-toolbelt' | ||
The first argument specifies saga when to dispatch the function in the second argument. | ||
The first argument specifies the saga to dispatch when the function in the second argument is dispatched. | ||
@@ -65,3 +65,3 @@ ```js | ||
By default, the payload of the action is what passed to the function as it's argument. | ||
By default, the payload of the action is what was passed to the function as it's argument. | ||
@@ -74,5 +74,5 @@ You have two ways of changing it, using `options`: | ||
args: [{id, url}], | ||
// OR | ||
// map the action to arguments using a regular or a generator function | ||
@@ -82,3 +82,3 @@ mapArgs: function* mapArgs(action){ | ||
const url = yield select(urlSelector) | ||
return [{id: todosId, url}, true] | ||
@@ -85,0 +85,0 @@ } |
export makeAsyncSaga from './makeAsyncSaga' |
@@ -0,0 +0,0 @@ import { call, put, takeLatest } from 'redux-saga/effects' |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13079