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' ```
#46 · closed · 0 comments
当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' ```