Answers for "redux saga delay"

0

redux saga delay

const delay = (ms) => new Promise(res => setTimeout(res, ms))


export function* incrementAsync() {
  yield delay(1000)
  yield put({type: 'INCREMENT'})
}
Posted by: Guest on June-02-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language