interface CommentEvent

Keeps comment threads and comment counts live. WSProvider emits it as a comment event on each comment_* message; the Dump page applies it to its thread, and useDumpListSync to the counts on dump cards.

Properties

type: "created" | "deleted" | "updated"
dumpId: string
optional
comment: Comment

Set when created or updated.

optional
commentId: string

Set when deleted.

Usage

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