Type Alias dioxus_core::prelude::Scope

source ·
pub type Scope<'a, T = ()> = &'a Scoped<'a, T>;
Expand description

A wrapper around the Scoped object that contains a reference to the ScopeState and properties for a given component.

The Scope is your handle to the crate::VirtualDom and the component state. Every component is given its own ScopeState and merged with its properties to create a Scoped.

The Scope handle specifically exists to provide a stable reference to these items for the lifetime of the component render.