Skip to content

Commit

Permalink
Fix invariant with getInitialState
Browse files Browse the repository at this point in the history
  • Loading branch information
brycekahle committed Mar 9, 2014
1 parent b4712ae commit 1ae98b8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions dist/react-infinite-scroll.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-infinite-scroll",
"version": "0.1.2",
"version": "0.1.3",
"description": "",
"main": "src/react-infinite-scroll.js",
"scripts": {
Expand Down
1 change: 1 addition & 0 deletions src/react-infinite-scroll.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ module.exports = function (React) {
getInitialState: function () {
this.pageLoaded = this.props.pageStart;
this.updated = true;
return null;
},
componentDidMount: function () {
this.attachScrollListener();
Expand Down

0 comments on commit 1ae98b8

Please sign in to comment.