pub struct UseMounted {
pub mounted: Signal<bool>,
}Expand description
Reactive state for the mount flag.
The flag is false while the first render is still being built and
true once the DOM has been committed.
It exists for the decisions that must not be taken during a render: focusing an input, measuring a box, or starting an animation that should begin from the committed layout rather than from a layout that does not exist yet.
Fields§
§mounted: Signal<bool>Whether the component has been mounted.
Implementations§
Source§impl UseMounted
Inherent implementation of UseMounted.
impl UseMounted
Inherent implementation of UseMounted.
Sourcepub fn is_mounted(&self) -> bool
pub fn is_mounted(&self) -> bool
Source§impl UseMounted
impl UseMounted
pub fn get_mounted(&self) -> Signal<bool>
pub fn get_mut_mounted(&mut self) -> &mut Signal<bool>
pub fn set_mounted(&mut self, val: Signal<bool>) -> &mut Self
Trait Implementations§
Source§impl Clone for UseMounted
impl Clone for UseMounted
Source§impl Debug for UseMounted
impl Debug for UseMounted
Auto Trait Implementations§
impl Freeze for UseMounted
impl RefUnwindSafe for UseMounted
impl Send for UseMounted
impl Sync for UseMounted
impl Unpin for UseMounted
impl UnsafeUnpin for UseMounted
impl UnwindSafe for UseMounted
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more