60秒后运行React + redux警告逻辑

时间:2018-03-25 09:28:03

标签: reactjs redux countdown

错误为warning: logic (L(COUNTDOWN_ADD)-1) is still running after 60s, forget to call done()? For non-ending logic, set warnTimeout: 0

我正在建立倒计时,有人可以输入开始时间和结束时间。这可能会运行一个小时 - 任何想法为什么会显示此console.log消息?

1 个答案:

答案 0 :(得分:1)

这是v0.12的预期行为。 See changelog

要修复它,只需执行错误 - 将warnTimeout设置为0。

Here is the example

const fooLogic = createLogic({
  ...
  warnTimeout: 0, // default: 60000 (one minute)
})