We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 406f6cc commit 687eb38Copy full SHA for 687eb38
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "react-hn",
3
- "version": "1.1.4",
+ "version": "1.1.5",
4
"description": "React-powered frontend for Hacker News using its Firebase API",
5
"author": "Jonathan Buchanan",
6
"license": "MIT",
src/Comment.jsx
@@ -45,7 +45,10 @@ var Comment = React.createClass({
45
},
46
47
componentDidUpdate(prevProps, prevState) {
48
+ // Huge, fast-growing threads like https://news.ycombinator.com/item?id=9784470
49
+ // seem to break the API - some comments are coming back from Firebase as null.
50
if (!this.state.comment) {
51
+ this.props.threadStore.adjustExpectedComments(-1)
52
return
53
}
54
0 commit comments