So I am using the ts-sdk 6.4.5 and running into another problem:
I am using
to create a liveCollection and update the displayed list of posts whenever a post is created or updated.
How to reproduce the issue:
- User A creates a Post and adds a like reaction to it.
- The reactionCount is 1; post.myReactions includes ‘like’
- User B likes the same post
- User A receives the updated post via live collection
The reactionCount is 2 (correct); the myReactions array is undefined (IMO incorrect)
When User A reboots and initializes a new connection the ‘myReactions’ are correct for the first .getPosts(…) again until somebody else likes the post
A few days ago my code has been working as intended and I did not make any changes. So I suspect there might be something wrong on your side or have you changed the meaning of the ‘myReactions’ array?
Thx for your help