Skip to main content

get_current_hook_context

Function get_current_hook_context 

Source
pub fn get_current_hook_context() -> HookContext
Expand description

Returns the currently active HookContext.

If no hook context has been set, creates and stores a default one in the global CURRENT_HOOK_CONTEXT cell so subsequent calls return the same instance.

ยงReturns

  • HookContext: The currently active hook context.