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

Stablilized Reference #15

Open
aminnairi opened this issue Feb 2, 2025 · 0 comments
Open

Stablilized Reference #15

aminnairi opened this issue Feb 2, 2025 · 0 comments

Comments

@aminnairi
Copy link
Owner

Is your feature request related to a problem? Please describe.
Currently, it is possible to create a reference for DOM elements, but not for values. This would be great if one would like to create a reference to a value that does not involve a re-render when changed, like storing the state of an AbortController for cancelling a request, for instance.

Describe the solution you'd like
Update the createDOMReference function to be more general-purposed, or create another function createReference.

Describe alternatives you've considered
Create global variables.

Additional context
This would introduce a breaking change, depend ending on the form that gets adopted when implementing this in the source-code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant