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

Key bindings hook #29

Merged
merged 3 commits into from
Dec 8, 2022
Merged

Key bindings hook #29

merged 3 commits into from
Dec 8, 2022

Conversation

ericyd
Copy link
Owner

@ericyd ericyd commented Dec 8, 2022

Refactor key bindings from a context into a custom hook.

Main benefit: it removes a bit of imperative code (useEffect, and cleanup functions) from components that have key bindings.

Secondary benefit: it just feels a bit more intuitive layout

@ericyd ericyd changed the title Key bindings component Key bindings hook Dec 8, 2022
@ericyd ericyd merged commit f3fe3b4 into main Dec 8, 2022
@ericyd ericyd deleted the key-bindings-component branch December 8, 2022 03:02
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

Successfully merging this pull request may close these issues.

1 participant