You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: prevent memory leak by checking existing hooks
Avoid duplicate hook registration by checking if a ContextVar with
the same name is already registered in _configure_hooks. This prevents
the memory leak while maintaining the original API and import patterns.
Changes:
- Check _configure_hooks before registering new hooks
- Maintain original function signature and behavior
- Use proper token-based context variable management
- Keep imports inside function to satisfy linting
0 commit comments