code issue
fantasticsoul opened this issue · comments
幻魂 commented
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
}
伊撒尔 commented
这种问题可以直接pr哈!