interface DumpListSyncOptions

Passed to useDumpListSync by the lists that need more than edits and deletions.

Properties

optional
isOwner: boolean

The list holds the viewer's own private dumps, as their profile, the index and the search do, so that one they make private stays. Only its poster hears of a private dump's edits.

optional
belongs: (dump: Dump) => boolean

Which dumps the list may hold. A dump that left it, as by turning private, comes back where it was when it returns and this accepts it. Without it, the list never gains a dump.

optional
addNew: boolean

Also adds a dump belongs accepts that the list never held, where the newest-first order puts it among the dumps loaded: a new one first. One older than all of them is left to the next pages. For the lists sorted by createdAt: the index's feed, a profile's dumps, the followed users'.

Usage

import { type DumpListSyncOptions } from "src/hooks/dump/useDumpListSync.ts";