File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " react-http-request" ,
3
- "version" : " 1.0.0 " ,
3
+ "version" : " 1.0.1 " ,
4
4
"description" : " React component exposes network request functionality" ,
5
5
"main" : " lib/index.js" ,
6
6
"scripts" : {
Original file line number Diff line number Diff line change @@ -21,6 +21,10 @@ class Request extends React.Component {
21
21
this . performRequest ( this . props ) ;
22
22
}
23
23
componentWillReceiveProps ( nextProps ) {
24
+ if ( JSON . stringify ( this . props ) === JSON . stringify ( nextProps ) ) {
25
+ return ;
26
+ }
27
+
24
28
this . request . abort ( ) ;
25
29
this . performRequest ( nextProps ) ;
26
30
}
@@ -137,7 +141,7 @@ Request.propTypes = {
137
141
withCredentials : React . PropTypes . bool ,
138
142
buffer : React . PropTypes . bool ,
139
143
attach : React . PropTypes . array ,
140
- fieldss : React . PropTypes . array ,
144
+ fields : React . PropTypes . array ,
141
145
onRequest : React . PropTypes . func ,
142
146
} ;
143
147
You can’t perform that action at this time.
0 commit comments