Thanks for the quick feedback.
We did try listening to “dataUpdated” section however we got the same response as not-exist
that we previously encountered.
I would request your help suggest on how to resolve this.
Please find our implementation and response below for our react application. Just FYI, the dataUpdated never got triggered
And also we encountered that we cannot use ReactionRepository without instantiating it.
const reactionCollection = useRef();
const reactionRepo = new ReactionRepository();
useEffect(() => {
reactionCollection.current = reactionRepo.reactionsForReference({
referenceId,
referenceType: ReactionReferenceType.Post,
});
console.log({ reactionCollection.current });
reactionCollection.current.on('dataUpdated', (data) => {
console.log({ data });
});
reactionCollection.current.on('dataError', (error) => {
// eslint-disable-next-line no-console
console.log({ error });
});
return () => reactionCollection.current.dispose();
}, [referenceId]);