Expand description
This crate contains several utility pieces that depend on multiple crates.
They are all re-exported in the main leptos
crate.
Re-exports§
pub use typed_builder;
Structs§
- ForProps
- Properties for the For component, a keyed list.
- Suspense
Props - Props for the Suspense component, which shows a fallback while Resources are being read.
- Transition
Props - Props for the Suspense component, which shows a fallback while Resources are being read.
Traits§
- Prop
- Describes the properties of a component. This is typically generated by the
Prop
derive macro as part of the#[component]
macro.
Functions§
- For
- Iterates over children and displays them, keyed by the
key
function given. - Suspense
- If any Resources are read in the
children
of this component, it will show thefallback
while they are loading. Once all are resolved, it will render thechildren
. If data begin loading again, falls back tofallback
again. - Transition
- If any Resources are read in the
children
of this component, it will show thefallback
while they are loading. Once all are resolved, it will render thechildren
. UnlikeSuspense
, this will not fall back to thefallback
state if there are further changes after the initial load. - map_
keyed - Function that maps a
Vec
to anotherVec
via a map function. The mappedVec
is lazy computed; its value will only be updated when requested. Modifications to the inputVec
are diffed using keys to prevent recomputing values that have not changed.