Skip to content

Events FAQ

How do I subscribe to events?

ts
const unsubscribe = lifecycle.on("page:visible", (event) => {
  console.log(event.metadata);
});

How do I inspect all events?

Use lifecycle.subscribe() for the full feed or open the Event Explorer.

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