interface ApiGetOptions {
    errorBehavior?: "throw" | "return";
    showStaleData?: boolean;
    skip?: boolean;
}

Properties

errorBehavior?: "throw" | "return"

Behavior when error occurs (other than 404).

showStaleData?: boolean

When true, show data for the previous request while loading new data. When false (default), show undefined while loading new data. You may want to set this to true if keeping old data on the screen while loading new data (for example, when changing pages in a paginated list).

skip?: boolean

Set to true to skip the api call.

Generated using TypeDoc