diff --git a/src/reactpy/core/_life_cycle_hook.py b/src/reactpy/core/_life_cycle_hook.py index 726346e3b..8600b3f01 100644 --- a/src/reactpy/core/_life_cycle_hook.py +++ b/src/reactpy/core/_life_cycle_hook.py @@ -22,7 +22,7 @@ async def __call__(self, stop: Event) -> None: ... logger = logging.getLogger(__name__) -class __HookStack(Singleton): # pragma: no cover +class _HookStack(Singleton): # pragma: no cover """A singleton object which manages the current component tree's hooks. Life cycle hooks can be stored in a thread local or context variable depending on the platform.""" @@ -53,7 +53,7 @@ def current_hook(self) -> LifeCycleHook: return hook_stack[-1] -HOOK_STACK = __HookStack() +HOOK_STACK = _HookStack() class LifeCycleHook: