Skip to content

Commit

Permalink
Update long-poems-relax.md
Browse files Browse the repository at this point in the history
  • Loading branch information
12joan authored Nov 5, 2023
1 parent 2b15df5 commit f2b2d7f
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions .changeset/long-poems-relax.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
---
'@udecode/plate-comments': major
---
Breaking Change!

What?

Removes the useCommentValue hook.

Why?

The hook created a reference which was never updated and caused an error if users tried to edit comments.

How to migrate?

The `useCommentValue` was only imported and called in a single plate-ui component, `comment-value.tsx`. The hook should be removed altogether. If you have not customized this component, you can reinstall the default component to import the changes. Otherwise you can manually delete to useCommentValue from your existing component. If you use the `useCommentValue` hook elsewhere in your project for any reason, you will need to replace it with your own implementation.
Remove `useCommentValue`, which was redundant with the hooks applied automatically in `CommentEditTextarea.tsx`.

0 comments on commit f2b2d7f

Please sign in to comment.