Deprecating with_state

This commit is contained in:
Pauan 2021-04-26 16:56:42 +02:00
parent 7257d3eac9
commit 19dd6fbf1d
1 changed files with 1 additions and 0 deletions

View File

@ -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,