interface VoteEvent

Keeps a user's upvoted list live, on their profile's overview and tab. WSProvider emits it as a vote event on each votes_update, and useUpvotedList adds or drops the dump.

Properties

dumpId: string
voterId: string
action: "cast" | "remove"

Usage

import { type VoteEvent } from "src/contexts/ws/WSContext.ts";