Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Update a comment’s text content or metadata
useUpdateComment
content
metadata
import { useUpdateComment } from "@sublay/react-js"; function EditComment({ commentId }: { commentId: string }) { const updateComment = useUpdateComment(); const save = async (newContent: string) => { const updated = await updateComment({ commentId, content: newContent }); console.log("Updated:", updated.id); }; return <button onClick={() => save("Edited content")}>Save</button>; }