mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-05-30 10:43:08 +03:00
15 lines
366 B
JavaScript
15 lines
366 B
JavaScript
/* eslint-disable no-constant-condition */
|
|
|
|
import { takeEvery } from 'redux-saga';
|
|
import { put, call } from 'redux-saga/effects';
|
|
import { delay } from 'redux-saga';
|
|
|
|
export function* incrementAsync() {
|
|
yield call(delay, 1000);
|
|
yield put({ type: 'INCREMENT' });
|
|
}
|
|
|
|
export default function* rootSaga() {
|
|
yield* takeEvery('INCREMENT_ASYNC', incrementAsync);
|
|
}
|