react-native-activity-feed icon indicating copy to clipboard operation
react-native-activity-feed copied to clipboard

TypeError: undefined is not an object (evaluating 'activities.getIn(path).toJS')

Open odifort opened this issue 3 years ago • 1 comments

  • iOS or Android? Both
  • Expo or regular React Native? Native
  • React Native Version:
  • react-native-activity-feed or expo-activity-feed version: react-native-activity-feed 1.1.1
  • getstream version: 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 image

@tbarbugli @JelteF

odifort avatar Apr 13 '22 13:04 odifort

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

tlester avatar Nov 12 '22 18:11 tlester