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
Functions
Link copied to clipboard
Unregisters the InitialState handler. Idempotent: subsequent calls are no-ops.