Skip to content
Layers
Esc
navigateopen⌘Jpreview

Guides

Task-oriented recipes for building with Layers.

From your first open call through queues, nesting, animations, and SSR. Each guide is framework-agnostic where possible; parallel adapter syntax uses tabs.

Start here

  1. Getting started — declare a layer, mount an outlet, open and await
  2. Install — packages and peer dependencies

Core patterns

  1. Awaiting resultsawait open, DataTag inference, fire-and-forget
  2. Singletonsupsert + update for toasts and progress
  3. Serial queuesscope: serial, getQueuedSnapshot
  4. Nested overlays — layer groups, child stacks, inline outlets

Polish and safety

  1. Animationstransition, delays, call.settle()
  2. Dismissal blockersaddBlocker, dismissing, dismissAll modes
  3. Payload validation — Standard Schema, PayloadValidationError
  4. Error handling — promise rejections, Register, narrowing

Advanced

  1. Headless renderinguseStackHandles, StackSubscribe, custom hosts
  2. SSR — per-adapter server rendering posture
  3. Devtools — inspect stacks in TanStack Devtools; subscribeNotify

For the engine model and terminology, see Concepts.

Last updated on July 17, 2026

Was this page helpful?