Skip to content
module@warp-drive/core/reactive

Function commit() ​

ts
function commit(record: ReactiveResource): Promise<void>;

Defined in: warp-drive-packages/core/src/reactive/-private/record.ts:777

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.