Skip to content

feat(@api-hooks/gh): useGhAddGistComment(gistId) / useGhUpdateGistComment(gistId) / useGhDeleteGistComment(gistId) #67

@ElJijuna

Description

@ElJijuna

Hooks

  • `useGhAddGistComment(gistId)`
  • `useGhUpdateGistComment(gistId)`
  • `useGhDeleteGistComment(gistId)`

Client methods

  • `client.gist(gistId).addComment(data)` → `GistComment`
  • `client.gist(gistId).updateComment(commentId, data)` → `GistComment`
  • `client.gist(gistId).deleteComment(commentId)` → `void`

Notes

Mutation hooks for gist comment CRUD.

Invalidate: `ghQueryKeys.gistComments(gistId)` on success.

Metadata

Metadata

Assignees

No one assigned

    Labels

    pkg:ghRelated to @api-hooks/gh package

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions