You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 13, 2024. It is now read-only.
Describe the bug
Can not get the latest state varible in onClick callback func, when using react hooks.
To Reproduce
It always print
num: 0
Expected behavior
the
num
variable shoud increase each time the commit dot was clicked.Screenshots
Context
Additional information
The text was updated successfully, but these errors were encountered: