AddCommentThreadEvent
typedef
Fired whenever a comment thread is added to the comments repository.
The event name includes channelId so it is possible to listen only on changes happening in the specified channel.
const channelId = 'foo';
commentsRepository.on( `addCommentThread:${ channelId }`, ( evt, data ) => {
console.log( evt, data );
} );
Copy code
Properties
args : [ Required<AddCommentThreadEventData> ]module:comments/comments/commentsrepository~AddCommentThreadEvent#argsname : stringmodule:comments/comments/commentsrepository~AddCommentThreadEvent#name
Value
object