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

    Class StaticDataSource<T, K>

    A source over an in-process array, for fixtures, demos and tests.

    The collection is instance state, seeded once from the array passed to the constructor and never re-read from it. That is the fix for the old closure-factory behaviour: identity of the caller's array no longer controls the dataset's lifetime, so passing an inline literal from a component no longer discards every created and edited row when the parent happens to re-render.

    The seed array is copied, so mutations never write back to the caller's data.

    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[]>