getLatestComment method to fetch the most recent comment for any reference within your application. This feature enhances user experience by keeping users informed about the latest interactions and fostering a more dynamic, interactive environment with real-time updates.
Live Object Integration
Returns live objects that automatically update when new comments arrive
Optimized Queries
Efficient single-comment retrieval with minimal network overhead
The
getLatestComment method returns a Live Object that you can observe for real-time updates when Realtime Events are subscribed, ensuring your app stays current with the latest community interactions.Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
referenceId | String | Yes | ID of the reference (post, story, etc.) |
referenceType | Enum | Yes | Type of reference (e.g., .post, .story) |
includeReplies | Boolean | No | Whether to include reply comments (default: false) |
Related Topics
Get Comment
Retrieve specific comments by ID with full details
Create Comment
Learn how to create new comments and replies
Live Objects
Understanding live object patterns and best practices
Comment Overview
Complete guide to comment functionality and features