interface ViewHandle<TClient extends ViewClient> No documentation.
Properties
state
readonly state: TClient["snapshot"] | undefined; The latest state, or undefined until the client connects.
client
readonly client: TClient | undefined; The connected client for commands, or undefined until it connects. It stays the same object for the connection, and only state follows each published state, so an $effect that reads client, error or pending does not run again when the View's state changes.
error
readonly error: unknown; The connection failure, if any.
pending
readonly pending: boolean; True while a reference is connecting.
Methods
retry
retry(): void; Connects a reference again after a failure.