Skip to content

Event Cleanup

Prefer named event subscriptions that return unsubscribe functions.

Use the Event Explorer to confirm listeners are removed after cleanup.

Common mistake

Subscribing inside render without storing the unsubscribe handle — or creating a session without ever calling dispose().

Prefer one shared session and tear it down with lifecycle.dispose() on route/app unmount (unsubscribes alone are not enough if the session still owns browser listeners).

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