pub struct Suspense { /* private fields */ }
Available on crate features
csr
or ssr
only.Expand description
Suspend rendering and show a fallback UI until the underlying task completes.
Trait Implementations§
source§impl BaseComponent for Suspensewhere
Self: 'static,
impl BaseComponent for Suspensewhere
Self: 'static,
§type Properties = SuspenseProps
type Properties = SuspenseProps
The Component’s Properties.
source§fn update(&mut self, _ctx: &Context<Self>, _msg: Self::Message) -> bool
fn update(&mut self, _ctx: &Context<Self>, _msg: Self::Message) -> bool
Updates component’s internal state.
source§fn changed(&mut self, _ctx: &Context<Self>, _old_props: &Self::Properties) -> bool
fn changed(&mut self, _ctx: &Context<Self>, _old_props: &Self::Properties) -> bool
React to changes of component properties.
source§fn view(&self, ctx: &Context<Self>) -> HtmlResult
fn view(&self, ctx: &Context<Self>) -> HtmlResult
Returns a component layout to be rendered.
source§fn rendered(&mut self, _ctx: &Context<Self>, _first_render: bool)
fn rendered(&mut self, _ctx: &Context<Self>, _first_render: bool)
Notified after a layout is rendered.
source§fn prepare_state(&self) -> Option<String>
fn prepare_state(&self) -> Option<String>
Prepares the server-side state.
source§impl FunctionProvider for Suspense
impl FunctionProvider for Suspense
§type Properties = SuspenseProps
type Properties = SuspenseProps
Properties for the Function Component.