Skip to content

Commit

Permalink
changeset added
Browse files Browse the repository at this point in the history
  • Loading branch information
EandrewJones committed Nov 4, 2023
1 parent ffaeade commit 2b15df5
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .changeset/long-poems-relax.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
'@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.

0 comments on commit 2b15df5

Please sign in to comment.