Closed ZhangJian-3ti closed 5 years ago
如果用functional的方式,则jest test会报 invalid hooks call: hooks can only be called in a stateless component.
能做一个简单的复现吗
用 jest 跑的,怎么建立复现?
开一个新仓库,提交到 github
OK,我再测试下。
Fixed in https://github.com/NervJS/nerv/commit/420319d24e38d12d5116856fc9f16ca7de4bfb09
如果用functional的方式,则jest test会报 invalid hooks call: hooks can only be called in a stateless component.