Skip to content
providerkit
GitHub

PendingSendStorage

Defined in: react/src/drafts.ts:135

Where the client keeps that message. Store it only under this exact scope. The host owns encryption, access control and deletion after expiresAt.

load(scope): Promise<unknown>;

Defined in: react/src/drafts.ts:136

Parameter Type
scope DraftScope

Promise<unknown>


save(scope, value): Promise<void>;

Defined in: react/src/drafts.ts:138

null removes it. The client waits for each write to finish before it starts the next.

Parameter Type
scope DraftScope
value StoredSend | null

Promise<void>