taro不支持自定义hooks吗



  • index.esm.js?eb37:1582 Uncaught (in promise) Error: invalid hooks call: hooks can only be called in a stateless component.
    at getHooks (index.esm.js?eb37:1582)
    at Object.useState (index.esm.js?eb37:1594)
    at _callee$ (useRequest.js?4f14:21)
    at tryCatch (runtime.js?4ddb:62)
    at Generator.invoke [as _invoke] (runtime.js?4ddb:296)
    at Generator.prototype.<computed> [as next] (runtime.js?4ddb:114)
    at step (useRequest.js:10)
    at eval (useRequest.js:10)
    at new Promise (<anonymous>)
    at eval (useRequest.js:10)


登录后回复