Skip to content

Commit

Permalink
updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
SpringDDWong committed Jul 12, 2021
1 parent ec4af27 commit b088458
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ Always use dispatchPayload to trigger this saga.
|()=>void|Call to cancel this saga immediately|

```javascript
const [dispatchPayload, cancelSaga]: [Task, (payload: any) => void] = useSagaSimple(function* (payload: any) {
const [dispatchPayload, cancelSaga]: [(payload: any) => void, () => void] = useSagaSimple(function* (payload: any) {
yield delay(1000)
yield put({
type: 'provider_add'
Expand Down

0 comments on commit b088458

Please sign in to comment.