Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

react-keeper是否支持react-hook #110

Open
zyno1107 opened this issue Jun 6, 2019 · 4 comments
Open

react-keeper是否支持react-hook #110

zyno1107 opened this issue Jun 6, 2019 · 4 comments

Comments

@zyno1107
Copy link

zyno1107 commented Jun 6, 2019

用了react-keeper,页面中一使用react-hook就会报错

Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:

  1. You might have mismatching versions of React and the renderer (such as React DOM)
  2. You might be breaking the Rules of Hooks
  3. You might have more than one copy of React in the same app
    See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.

将react-keeper改回react-router-dom就能正常运行

打算在项目中使用react-keeper,如果不兼容hook就白白浪费了这么好用的插件

@nuonuonuonuoyan
Copy link

同样的问题,react-keeper无法使用react-hooks,哎,挺伤心的

@Double-Lv
Copy link

感觉大家可以共建啊,改它代码然后提PR。看react-keeper代码,现在支持插件化开发方式,代码阅读起来也比较容易。

@lishizhen
Copy link

这个库挺好的,但是不支持react-hooks写法,限制了很多场景,作者能支持下吗

@ludejun
Copy link

ludejun commented Jun 1, 2021

mark

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants