Skip to content

StateError when adding a child comment #237

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
PKeviin opened this issue Nov 10, 2022 · 0 comments
Open

StateError when adding a child comment #237

PKeviin opened this issue Nov 10, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@PKeviin
Copy link

PKeviin commented Nov 10, 2022

Hello,

I get an error when I try to add a child comment.
I use the onAddChildReaction() method in the feed_bloc.dart file.

The error returned is StateError, it appears in the line of the indexWhere :

final _reactions = getReactions(lookupValue, reaction);
final reactionPath = _reactions.getReactionPath(reaction);
final indexPath = _reactions
    .indexWhere((r) => r.id! == reaction.id); //TODO: handle null safety

The error does not occur on all comments. Each time the child comment is well created.
Maybe the limit to retrieve the last 25 comments is a problem

Version

  • stream_feed_flutter_core : 0.8.0
  • Flutter : 3.3.6

Thanks !

@PKeviin PKeviin added the bug Something isn't working label Nov 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant