@gphone/sdk
    Preparing search index...

    Function createPagedStore

    • Type Parameters

      • T extends { id: number }

      Parameters

      • action: string | PageReader<T>

        The NUI action, the server action (with service: set), or the reader itself. A function is also what keeps server/__tests__/routes.test.ts's scanner from reading the name as a route nobody declared — there is no name to read.

      • options: { pageSize?: number; service?: string } = {}
        • OptionalpageSize?: number
        • Optionalservice?: string

          Reach the server through the generic service route rather than a named NUI action.

          Set it and action becomes a server action name — get, following — instead of a row in shared/routes.ts. That table and web/src/services/ both ship inside gPhone, so an app installed from the Store can add to neither; this is the only path open to it. Mirrors CrudOptions.service, deliberately: an app should not have to learn two different ways to say the same thing depending on whether its list is paged.

      Returns PagedStore<T>