tl icon indicating copy to clipboard operation
tl copied to clipboard

Made VDomGuard::get_mut_ref actually return a mutable ref

Open ogghostjelly opened this issue 9 months ago • 0 comments

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 avatar Mar 14 '25 03:03 ogghostjelly