Resolve session timeout warning popup closure bug in SessionManager

Fixkamo-internal
Shipped
October 25, 2025 at 12:26 PM UTC
Author
snadjafinia
Commit
b3a0fbe

- Fixed React closure bug causing inconsistent warning popup behavior - Added useRef hooks to maintain access to latest state in callbacks - Implemented useCallback for stable handler function references - Enhanced handleExtended to properly close warning when session extended - Fixed stale state issue where callbacks referenced outdated isWarningOpen value - Added better logging for debugging state changes This ensures the session timeout warning will consistently show when needed and properly handle session extensions from other Kamo applications.

All changes

Like what you see shipping?

Every one of these updates lands in your workspace automatically. Start free and watch it grow week after week.

Start Free ForeverView Pricing