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
Propderive macro as part of the#[component]macro.
Functions§
- For
- Iterates over children and displays them, keyed by the
keyfunction given. - Suspense
- If any Resources are read in the
childrenof this component, it will show thefallbackwhile they are loading. Once all are resolved, it will render thechildren. If data begin loading again, falls back tofallbackagain. - Transition
- If any Resources are read in the
childrenof this component, it will show thefallbackwhile they are loading. Once all are resolved, it will render thechildren. UnlikeSuspense, this will not fall back to thefallbackstate if there are further changes after the initial load. - map_
keyed - Function that maps a
Vecto anotherVecvia a map function. The mappedVecis lazy computed; its value will only be updated when requested. Modifications to the inputVecare diffed using keys to prevent recomputing values that have not changed.