react-native-activity-feed
react-native-activity-feed copied to clipboard
Non-iterable TypeError when adding 3rd tier comment
SETUP
- iOS
- "react-native": "^0.62.2",
- "react": "^16.13.1",
- "react-native-activity-feed": "^0.9.1",
- "getstream": "^6.2.0",
Describe the bug When I submit to add a 3rd tier comment, I receive the following TypeError. The comment has been added despite this error, but only displays if I refresh the app. This error only occurs when I add the first 3rd tier reply on the chain. After refresh, I am able to add more 3rd tier comments without issue.
Following the trace in Feed.js, I found that getReactionPaths function returns undefined from this.state.reactionIdToPaths[reactionId].
TypeError: undefined is not iterable (cannot read property Symbol(Symbol.iterator))
at _createForOfIteratorHelper (Feed.js:54)
at Feed.js:498
at FeedManager.setState (Feed.js:96)
at _callee4$ (Feed.js:495)
at tryCatch (runtime.js:45)
at Generator.invoke [as _invoke] (runtime.js:274)
at Generator.prototype.
To Reproduce Steps to reproduce the behavior:
- Add a comment to an activity
- Reply to the initial comment
- Reply to the Reply.
- Receive TypeError shown above.
- Refresh and the 3rd tier comment will be displayed.
Expected behavior Comment added and displayed on the ReactionList