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 组件 使用hook的时候无法获得最新的值 #15

Closed
xiaohuoni opened this issue Nov 25, 2019 · 2 comments
Closed

React 组件 使用hook的时候无法获得最新的值 #15

xiaohuoni opened this issue Nov 25, 2019 · 2 comments
Assignees

Comments

@xiaohuoni
Copy link
Member

const [a,setA] = useState(1);

<GesturePassword onChange={()=>{console.log(a);setA(2)}}/>

a 一直是 1

@wangxingkang
Copy link
Member

晚上抽时间看下

@wangxingkang wangxingkang added the bug Something isn't working label Nov 26, 2019
@wangxingkang wangxingkang self-assigned this Nov 26, 2019
@wangxingkang wangxingkang removed the bug Something isn't working label Nov 27, 2019
@wangxingkang
Copy link
Member

暂时关闭吧 react 就是这样的

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

2 participants