Coder Social home page Coder Social logo

Comments (9)

StefanLobbenmeier avatar StefanLobbenmeier commented on July 19, 2024

Hi :)

Can you give the id of a submission where this happens? Or does it happen with every submission?

Edit: also, can you elaborate what you are trying to achieve? I just checked how I do it and I replace the MoreComments one like this:

final MoreComments moreComments;
List<dynamic> expandedComments;
moreComments.comments().then((_expandedComments) {
    expandedComments = _expandedComments;
  });

from draw.

StefanLobbenmeier avatar StefanLobbenmeier commented on July 19, 2024

Ok the issue seems to be here:

/// Returns the [CommentForest] representing the comments for this
  /// [Submission]. May be null (see [refreshComments]).
  CommentForest get comments => _comments;

But since you called refresh Comments it should not be null anymore. Anyway, the issue is not the replaceMore, but that the comments are null after calling refreshComments.

Edit: I might be stupid and the getter comments is actually called within moreComments... Let me check
Edit2: Yes indeed, it looks like parent.replies is null, since the issue is here:

parent.replies._comments.add(comment);

from draw.

bkonyi avatar bkonyi commented on July 19, 2024

Sorry for the delay on this. I'll take a look ASAP.

from draw.

bkonyi avatar bkonyi commented on July 19, 2024

@StefanLobbenmeier, was this resolved by your PR or was this another failure?

from draw.

StefanLobbenmeier avatar StefanLobbenmeier commented on July 19, 2024

It was not resolved by my PR, at least not intentionally.

from draw.

bkonyi avatar bkonyi commented on July 19, 2024

It was not resolved by my PR, at least not intentionally.

I didn't think so, but figured I'd check. Were you ever able to reproduce this with a specific submission? If so, can you post it here so I can take a look?

from draw.

bkonyi avatar bkonyi commented on July 19, 2024

Quick bump on this issue. @StefanLobbenmeier, have you been able to reproduce? Otherwise I'll close this for now.

from draw.

StefanLobbenmeier avatar StefanLobbenmeier commented on July 19, 2024

Sorry, I have been gone for some time, but I will hopefully be more active again now :) I did not attempt to reproduce, I was also hoping for @Ivaskuu to provide a specific submission

from draw.

bkonyi avatar bkonyi commented on July 19, 2024

Sorry, I have been gone for some time, but I will hopefully be more active again now :) I did not attempt to reproduce, I was also hoping for @Ivaskuu to provide a specific submission

Not a problem, just figured I'd check! I think I'm going to close this for now, but if someone runs into this error again feel free to reopen with reproduction steps.

from draw.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.