Skip to content

Idle FAQ

What triggers idle state?

A positive idleTimeout (milliseconds) and no matching activity events for that duration. Default idleTimeout: false means idle observation is off.

Example

ts
const lifecycle = createBrowserLifecycle({
  idleTimeout: 60_000,
  activityDebounce: 250,
});

See Idle for activityEvents, session:idle / session:active, and snapshot fields.

Playground

Idle Playground

An ecosystem of independent, headless TypeScript libraries engineered for modern web development. Every package includes interactive playgrounds and documentation that evolves alongside the code.