Skip to content
module@warp-drive/core/reactive
ts
function commit(record): Promise<void>;

Defined in: core/src/reactive/-private/record.ts:739

Forcibly commit all local changes on an editable resource to the remote (immutable) version.

This API should only be used cautiously. Typically a better approach is for either the API or a Handler to reflect saved changes back to update the cache.

Parameters

record

ReactiveResource

Returns

Promise<void>

Released under the MIT License.