-
Notifications
You must be signed in to change notification settings - Fork 542
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: (0 , _utils.delay) is not a function #41
Comments
Any updates on this? |
My fault, it looks like this was added to CHANGELOG in redux-saga repo:
|
Hi I'm getting the same error with delay following this: https://github.com/redux-saga/redux-saga/blob/master/docs/advanced/RacingEffects.md If I comment out the delay line it doesn't error. const { data } = yield race({
data: take(APP_ACTIONS.APP_FETCH_ENTITLEMENTS_SUCCEEDED),
timeout: delay(5000),
}); Edit: Fixed by using delay from |
@dominictobias Yeah the docs are definitely wrong on this one. Thanks for the save. |
If you could pinpoint places where this is referenced wrong in the docs it would be appreciated, keep in mind that docs are about v1 which differs slightly from 0.x |
Using version "^1.0.1", and having the same issue as @dominictobias . Work by by using delay from |
I followed the tutorial to add asynchronous calls. However, I got this error in browser console,
I figured out that in
sagas.js
, it should beimport { delay } from 'redux-saga'
, instead ofimport { delay } from 'redux-saga/utils'
. But from redux-saga/redux-saga#1401,delay
is either inredux-saga/utils
orredux-saga/effects
, what is expected place to importdelay
?The text was updated successfully, but these errors were encountered: