antd-crud-table API
    Preparing search index...

    Class LocalStorageDataSource<T, K>

    A source persisting to localStorage under a fixed key.

    Reads go through storage on every call rather than through a cache, so a second tab writing the same key is picked up on the next query instead of being shadowed by stale in-memory state.

    Storage is best-effort: a read that fails or returns malformed JSON falls back to the seed rather than throwing, since an unreadable cache should not take the table down. Writes that fail (quota, private mode) do throw - silently dropping a write the user believes succeeded is worse than an error.

    Type Parameters

    • T extends object
    • K extends keyof T

    Hierarchy (View Summary)

    Index
    generateId: IdGenerator<T, K>

    Assigns the identity for newly created records.

    key: K

    The property holding each record's identity.

    • Every record matching the query, ignoring pagination.

      Exists so export can cover the whole result set rather than the current page. Optional: a source over an unbounded remote collection may have no safe way to honour it, and callers must degrade to list when absent.

      Parameters

      Returns Promise<readonly T[]>