yisar / smallapp

🎃 Chinese miniapp architecture.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

code issue

fantasticsoul opened this issue · comments

voe/src/master.ts line 73

function effect(fn) {
  const effect = function effect(...args) {
    return run(effect, fn, args)
  }
  return effect
}

这里如果是由eslint验证的话,会报错shadowName not allowed...

改为如下是不是更好呢

function effect(fn) {
  const scopedEffect = function(...args) {
    return run(effect, fn, args)
  }
  return scopedEffect
}

这种问题可以直接pr哈!