mirror of
https://github.com/leptos-rs/leptos
synced 2024-11-10 06:44:17 +00:00
feat: provide deprecated create_node_ref (#2777)
This commit is contained in:
parent
1f4c410f78
commit
f174688974
1 changed files with 13 additions and 0 deletions
|
@ -103,3 +103,16 @@ where
|
|||
self.0.track();
|
||||
}
|
||||
}
|
||||
|
||||
/// Create a [NodeRef].
|
||||
#[inline(always)]
|
||||
#[track_caller]
|
||||
#[deprecated = "This function is being removed to conform to Rust idioms. \
|
||||
Please use `NodeRef::new()` instead."]
|
||||
pub fn create_node_ref<E>() -> NodeRef<E>
|
||||
where
|
||||
E: ElementType,
|
||||
E::Output: 'static,
|
||||
{
|
||||
NodeRef::new()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue