Comments (9)
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.
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:
DRAW/lib/src/models/comment_forest.dart
Line 53 in c52d388
from draw.
Sorry for the delay on this. I'll take a look ASAP.
from draw.
@StefanLobbenmeier, was this resolved by your PR or was this another failure?
from draw.
It was not resolved by my PR, at least not intentionally.
from draw.
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.
Quick bump on this issue. @StefanLobbenmeier, have you been able to reproduce? Otherwise I'll close this for now.
from draw.
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.
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)
- Some questions regarding authentication. HOT 3
- No field for rewarder karma HOT 1
- Cast error on vote
- Subreddit Submit Unhandled Exception: type '_InternalLinkedHashMap<String, String?>' is not a subtype of type 'Map<String, String>' in type cast HOT 4
- Some tests for this package fail in sound null-safety mode HOT 6
- Investigate web authentication test failure HOT 1
- Good way to get only comments HOT 3
- Bugs with comment api. HOT 1
- TypeError when accessing "variants" property of "Submission" object HOT 2
- Get other information such as icon_img HOT 1
- how to get subreddit icon like in PRAW HOT 2
- Redirect doesn't work? HOT 1
- SubredditRef promotion to Subreddit HOT 1
- Getting the authenticated user's subreddits, no `after` param?
- Next release? HOT 1
- Invalid OAuth response for "https://www.reddit.com/api/v1/access_token": required parameter "error" was not a string, was "400". HOT 5
- Unhandled Exception: LateInitializationError: Field '_infoPath@xxxxx' has not been initialized.
- "The authorization URL has not yet been generated." after auth.authorize
- submit media HOT 4
- Search by keyword
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from draw.