File tree Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -92,6 +92,10 @@ export class App extends Component{
9292 if (STATS .loading === this .state .action ){
9393 return false
9494 }
95+ // 无更多内容则不执行后面逻辑
96+ if (! this .state .hasMore ){
97+ return ;
98+ }
9599
96100 setTimeout (()=> {
97101 if (this .state .index === 0 ){
Original file line number Diff line number Diff line change @@ -87,6 +87,10 @@ export class App extends Component{
8787 if (STATS .loading === this .state .action ){
8888 return false
8989 }
90+ // 无更多内容则不执行后面逻辑
91+ if (! this .state .hasMore ){
92+ return ;
93+ }
9094
9195 setTimeout (()=> {
9296 if (this .state .index === 0 ){
Original file line number Diff line number Diff line change 11{
22 "name" : " react-pullload" ,
3- "version" : " 1.0.6 " ,
3+ "version" : " 1.0.7 " ,
44 "description" : " React compopnent pull down refresh and pull up load more" ,
55 "main" : " ./lib/index.js" ,
66 "scripts" : {
You can’t perform that action at this time.
0 commit comments