Redux-saga: takeLatest parameter error should be more specific

Created on 30 Oct 2017  路  1Comment  路  Source: redux-saga/redux-saga

When using takeLatest without providing a second saga parameter, the error message received isn't very clear.

Example:

yield takeLatest(REQUEST_SIGNOUT);
utils.js:258 uncaught at signInPageDataFlow at signInPageDataFlow 
 at signOutFlow 
 at takeLatest 
 TypeError: Cannot read property 'name' of undefined
    at takeLatest (webpack:///./node_modules/redux-saga/es/internal/sagaHelpers/takeLatest.js?:42:125)

Is it possible to have this provide an error message such as takeLatest requires a saga parameter?

good first issue

Most helpful comment

It is possible to add this type of validation in the development environment. Gonna add this in upcoming v1 release

>All comments

It is possible to add this type of validation in the development environment. Gonna add this in upcoming v1 release

Was this page helpful?
0 / 5 - 0 ratings