property UseFetchStateResult.setData

Edits the loaded data, as when a next page comes in. It does nothing until loaded.

Type

(fn: (data: T) => T) => void

Usage

import { type UseFetchStateResult } from "src/hooks/shared/useFetchState.ts";