Skip to content
This repository was archived by the owner on Jun 4, 2026. It is now read-only.
This repository was archived by the owner on Jun 4, 2026. It is now read-only.

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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