Skip to content

Conversation

@ogghostjelly
Copy link

@ogghostjelly ogghostjelly commented Mar 14, 2025

It's such a small fix that it might be easier to just fix it yourself than try to merge a PR but here you go.

The method now returns a &mut VDom<'static>. The lifetimes should be fine since even though the returned VDom is static the mutable reference to it will drop before the guard drops. Ensuring that the mutable reference returned will not outlive the guard.

Fixes #71

@ogghostjelly ogghostjelly marked this pull request as draft March 14, 2025 03:26
@ogghostjelly ogghostjelly marked this pull request as ready for review March 14, 2025 04:49
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.

VDomGuard::get_mut_ref doesn't return a mutable reference

1 participant