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

Fix stale state issue in callbacks #30

Closed
ajmaln opened this issue Nov 19, 2024 · 0 comments · Fixed by #32
Closed

Fix stale state issue in callbacks #30

ajmaln opened this issue Nov 19, 2024 · 0 comments · Fixed by #32
Assignees
Labels
PR Issue has a PR associated with it. working Development has started on this issue.

Comments

@ajmaln
Copy link

ajmaln commented Nov 19, 2024

State values are stale inside the handler.

Ref: https://stackblitz.com/edit/vitejs-vite-h2m5q6?file=src%2FApp.tsx

@josephmathew900 josephmathew900 self-assigned this Nov 20, 2024
@neetogit-bot neetogit-bot bot added the working Development has started on this issue. label Nov 20, 2024
@neetogit-bot neetogit-bot bot added the PR Issue has a PR associated with it. label Nov 20, 2024
@josephmathew900 josephmathew900 changed the title Add dependency array to useHotkeys Fix stale state issue in callbacks Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR Issue has a PR associated with it. working Development has started on this issue.
Projects
None yet
2 participants