Skip to content

Documentation / @super-line/client / ClientStoreHandle

Interface: ClientStoreHandle

Defined in: index.ts:113

Client-side handle for one configured Store, reached via client.store(name).

Methods

open()

open(id): ResourceHandle

Defined in: index.ts:115

Open a reactive handle for a Resource (catch-up snapshot + live changes + write-through).

Parameters

id

string

Returns

ResourceHandle


read()

read(id): Promise<unknown>

Defined in: index.ts:117

One-shot read of a Resource's current value.

Parameters

id

string

Returns

Promise<unknown>


write()

write(id, data): Promise<void>

Defined in: index.ts:119

One-shot replace of a Resource's value (last-writer-wins).

Parameters

id

string

data

unknown

Returns

Promise<void>

Released under the MIT License.