yesmeck / react-with-hooks

[OUTDATED]Ponyfill for the React Hooks API (Support RN)
https://codesandbox.io/s/olx6zp44n6
MIT License
152 stars 11 forks source link

useState broken when work with useContext #6

Open afc163 opened 5 years ago

afc163 commented 5 years ago
Status reproduce version useContext?
https://codesandbox.io/s/orqqpwoqz react-with-hooks@1.1.6 true
https://codesandbox.io/s/k50r9wz745 react-with-hooks@1.1.6 false
https://codesandbox.io/s/jnoy3myvk5 react-with-hooks@1.1.4 true
yesmeck commented 5 years ago

看起来 useContext 是没法从外部实现了,1.1.4 能在这个场景下工作,但是有多个 useContext 就会出错