Skip to main content

Module scope

Module scope 

Source

Structs§

Scope

Functions§

current_scope
scope_memo
Access the current Scope’s memo cache (Scope::memo). The value lives until that Scope is disposed (navigation pop, root shutdown) - not merely until a scope! cache key stops composing, since scope! is a memo cache, not a Scope.
scoped_effect
Scoped effect that auto-cleans up.
scoped_effect_once
Mount-once scoped effect: runs f only the first time this call site composes, registering cleanup on the current scope. Later recompositions are no-ops. Requires composition context.