Skip to main content

store_area

Function store_area 

Source
pub fn store_area(def: &ComponentDef<'_>) -> Option<&'static str>
Expand description

Whether a store’s state can be given a record type here. A derived field or a field whose type cannot be named from its annotation or its initializer means it cannot. The storage AREA a store keeps its state in between page loads, or None for one that keeps nothing there. The area is the lifetime the author asked for, spelled the way the browser spells it — the one decision every tier reads, so every tier puts a persisted store in the same place.