Deprecating with_state
This commit is contained in:
parent
7257d3eac9
commit
19dd6fbf1d
|
@ -249,6 +249,7 @@ impl Dom {
|
|||
Self::new(bindings::create_comment(intern("")).into())
|
||||
}
|
||||
|
||||
#[deprecated(since = "0.5.14", note = "Store the data explicitly in a component struct instead")]
|
||||
#[inline]
|
||||
pub fn with_state<A, F>(mut state: A, initializer: F) -> Dom
|
||||
where A: 'static,
|
||||
|
|
Loading…
Reference in New Issue