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 node ref generics #481

Merged
merged 7 commits into from
Feb 8, 2023
Merged

Conversation

jquesada2016
Copy link
Contributor

Fixed NodeRef generics from NodeRef<HtmlElement<Div>> to NodeRef<Dev> and added NodeRef::onload() which will run the provided closure when the node ref's on_load is called. Uses FnOnce for maximum flexibility, and will therefore only ever run once.

@gbj gbj merged commit 7650061 into leptos-rs:main Feb 8, 2023
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.

None yet

2 participants