-
-
Notifications
You must be signed in to change notification settings - Fork 757
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
1 addition
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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`. |