wp-commentspackage to your project:
state.source.get("@comments/60")to get the ID's of these comments.
frontity.state.source.data["@comments/60/"]) with a tree structure of comments and replies, sorted by date (most recent first).
wp-commentspackage stores a map of objects by post ID in
state.comments.forms. Each of these objects represents one comment form. These objects are intended to be used as the state of React
<form>components and contain the input values as well as the submission status. They have the following properties:
updateFields()action described later.
postId. It submits the fields stored in the respective form (i.e.
state.comments.forms[postId]) or the fields passed as a second argument. If fields are passed, those replace the current values stored in
state.comments.forms[postId].isSubmittedproperty (described above) to determine the submission status.