react-native-activity-feed
react-native-activity-feed copied to clipboard
TypeError: undefined is not an object (evaluating 'activities.getIn(path).toJS')
- iOS or Android? Both
- Expo or regular React Native? Native
- React Native Version:
-
react-native-activity-feedorexpo-activity-feedversion: react-native-activity-feed 1.1.1 -
getstreamversion: 7.2.1 Describe the bug
When press repost an activity everything is ok, but if you press it other times then my app gives this error and my Feed does not update. It is my function that toggle a repost reaction of activity:
post.onToggleReaction(
'repost',
{id: post.activity.id},
{},
{targetFeeds: [`timeline:${uid}`, `notification:${post.activity.user.uid}`]}
Also I added a video, please check it
Expected behavior
https://user-images.githubusercontent.com/36490069/163203825-fdce4ad6-9f3c-49f5-a245-9304d97a4b41.mp4
Methods which use line "activities.getIn(path).toJS()" must work correctly.
Screenshots

@tbarbugli @JelteF
Did you figure this out? I just encouraged it myself.