withTask throw error when lastWithTaskCall is null
Open
- Dominant language
- JavaScript
- Stars
- 60
- Forks
- 7
- PR merge metrics
- No merged PRs in 30d
Description
in task.js
`function withTask(state, task) {
if (!module.hot && enableStackCapture && !lastWithTaskCall) {
lastWithTaskCall = trace(IMPROPER_TASK_USAGE);
}
...
`
should the condition be `lastWithTaskCall` being thuthy? This is causing exceptions being thrown in production and the entire app breaks.
Interestingly, we don't see this error on local because
a. `module.hot` is always truthy
b. `try {
throw new Error(message);
}` sometimes fails
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.