InitialStateScope

An AutoCloseable scope that pairs TreeState register/unregister lifecycle into a single object. Creating a scope registers the TreeState's InitialState handler; closing it unregisters. Close is idempotent—safe to call multiple times.

Use the factory methods forResolve and forLayout to create instances. The scope is typically managed by TreeFuture.trackRunAndCommit for ComponentTree and LithoRenderer call sites, or explicitly via try/finally for NestedLithoTree.

Types

Link copied to clipboard
object Companion
Link copied to clipboard

Functions

Link copied to clipboard
open override fun close()

Unregisters the InitialState handler. Idempotent: subsequent calls are no-ops.