@gphone/sdk
    Preparing search index...

    Type Alias PageReader<T>

    PageReader: (payload: Record<string, unknown>) => Promise<PagedReply<T> | T[]>

    A page read, for a list that no NUI action or useService call can reach.

    The third door, and the one an add-on needs for a shared service: a named NUI action is refused inside the sandbox (sdk/host/iframe/fetchNui.ts) and the generic service route is pinned to the app's own namespace (IframeHostServer's serviceAllowed), so a list like the follow graph is reachable only through its enumerated facet — useAccounts().getFollowers. Passing that function here keeps the paging (cursor, hasMore, the optimistic prepend/replace/remove) instead of reimplementing it per app.

    Type Parameters

    • T

    Type Declaration

      • (payload: Record<string, unknown>): Promise<PagedReply<T> | T[]>
      • Parameters

        • payload: Record<string, unknown>

        Returns Promise<PagedReply<T> | T[]>