state为函数时,useBlockState的返回值有误

#46 · closed · 0 comments

View on GitHub ↗

run-nan

当state的值为函数时 ```js registerBlock(block).initState({ func: () => 'this is the return value' }) ``` useBlockState的返回值有误 ```js const func = useBlockState(block, state => state.func) // func成了函数的返回值this is the return value' ```

Comments