View as Markdown

API reference: @salmonui/data/storage

createJsonStateStoragefunction

import { createJsonStateStorage } from '@salmonui/data/storage';

Also exported from @salmonui/data.

function createJsonStateStorage(options: FetchTransportOptions): DataGridStateStorage;

State storage over the JSON protocol endpoint: { v: 1, state: { op: 'load' | 'save' | 'remove', gridId, state?, expectedVersion? } } -> { v: 1, state: DataGridState | null, version?, status?: 'saved' | 'conflict' }.