-
Notifications
You must be signed in to change notification settings - Fork 8
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
implement useRef hook #130
Comments
This ticket may become easier to understand after the diagrams for #128 is resolved. Any questions can be directed to me in the interim, either here or on our slack. |
So, this can be potentially resolved by providing a |
There are effects that depend acting on the element that is generated, and using |
Summary
React has a useRef hook which is useful for having a mutable value that persists across renders and doesn't trigger re-renders itself. We should add a similar hook for tram-one!
Potential Implementation
Similar to how the useState hook works, we should use the workingKey value to create uniquely namespaced keys. However we can create a direct mapping to the global space with this namespaced key (rather than creating a Hover Engine action group).
The text was updated successfully, but these errors were encountered: