AmityPostRepository
provides a convenient method getPostForPostId(_:)
which returns AmityObject<AmityPost>
.observe
block can get called multiple times depending upon where the post is being fetched from. We can check the dataStatus
property for liveObject to see if the post is being fetched from server or locally. Refer to Accessing Post Information section.