Files
kandev/apps/web/lib/ws/handlers/task-plan-comments.ts
T
2026-09-10 22:33:56 +01:00

12 lines
402 B
TypeScript

import type { StoreApi } from "zustand";
import type { AppState } from "@/lib/state/store";
import type { WsHandlers } from "@/lib/ws/handlers/types";
export function registerTaskPlanCommentsHandlers(store: StoreApi<AppState>): WsHandlers {
return {
"task.plan.comments.changed": (message) => {
store.getState().setTaskPlanComments(message.payload.task_id, message.payload);
},
};
}