Struct dioxus::prelude::UseSharedState [−][src]
pub struct UseSharedState<'a, T> where
T: 'static, { /* fields omitted */ }
Implementations
Calling “write” will force the component to re-render
TODO: We prevent unncessary notifications only in the hook, but we should figure out some more global lock
Allows the ability to write the value without forcing a re-render
Trait Implementations
Auto Trait Implementations
impl<'a, T> !RefUnwindSafe for UseSharedState<'a, T>
impl<'a, T> !Send for UseSharedState<'a, T>
impl<'a, T> !Sync for UseSharedState<'a, T>
impl<'a, T> Unpin for UseSharedState<'a, T>
impl<'a, T> !UnwindSafe for UseSharedState<'a, T>
Blanket Implementations
Mutably borrows from an owned value. Read more