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.

When called outside a with_hook_context scope, returns a reference to the default empty context.

ยงReturns

  • HookContext - The currently active hook context.