Skip to content
API/QubeeListRequest

QubeeListRequest

type
src/types/qubee-list-request.type.ts

The request of a QubeeListHandle: a ListRequest for a list without an input, and ListRequest | null for a list that declares one — null while the input passed to useQubeeList is null, that is, not ready yet.

A list without an input always has a request, so code that reads it needs no null check.

import type { QubeeListRequest } from '@qubeejs/react';
type QubeeListRequest<TList> = [ListInput<TList>] extends [never] ? ListRequest : ListRequest | null

When [ListInput<TList>] extends [never]:

No members.

Otherwise:

No members.