From 3ac6dfb3bdbabc2b2835148787ffda0e608574de Mon Sep 17 00:00:00 2001 From: plainnany Date: Thu, 20 Aug 2020 14:29:07 +0800 Subject: [PATCH] Update UsingSagaHelpers.md --- docs/basics/UsingSagaHelpers.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/basics/UsingSagaHelpers.md b/docs/basics/UsingSagaHelpers.md index ae6e47a..bfb7d3b 100644 --- a/docs/basics/UsingSagaHelpers.md +++ b/docs/basics/UsingSagaHelpers.md @@ -27,7 +27,7 @@ export function* fetchData(action) { 然后在每次 `FETCH_REQUESTED` action 被发起时启动上面的任务。 ```javascript -import { takeEvery } from 'redux-saga' +import { takeEvery } from 'redux-saga/effects' function* watchFetchData() { yield takeEvery('FETCH_REQUESTED', fetchData) @@ -42,7 +42,7 @@ function* watchFetchData() { ```javascript -import { takeLatest } from 'redux-saga' +import { takeLatest } from 'redux-saga/effects' function* watchFetchData() { yield takeLatest('FETCH_REQUESTED', fetchData)