-
I'm using the latest @udecode/plate-comments and @udecode/plate-ui-comments packages to create a commenting system on a RTC app. So far I've managed to create comments, save them to a database, send them to clients using websocket, but I am unable to dynamically update the CommentsProvider's comments value, it always uses the initial value. I can confirm my websocket is working, the clients are receiving data, and I am setting a new value for comments as I am properly console logging the value on update without any issue. Is the value of comments static in the library, or am I missing something?
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Indeed, |
Beta Was this translation helpful? Give feedback.
Indeed,
CommentsProvider
props are only setting the initial values. You can useuseCommentsActions.comments(<newComments>)
to update these.