Skip to content

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

@odifort

Description

@odifort
  • 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

Simulator.Screen.Recording.-.iPhone.13.Pro.Max.-.2022-04-13.at.17.30.30.mp4

Methods which use line "activities.getIn(path).toJS()" must work correctly.

Screenshots
image

@tbarbugli
@JelteF

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions