Skip to content

Commit a61c33b

Browse files
author
古映杰
committed
fixed-#91
1 parent 2560a14 commit a61c33b

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

dist/react-lite.common.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* react-lite.js v0.15.29
2+
* react-lite.js v0.15.30
33
* (c) 2016 Jade Gu
44
* Released under the MIT License.
55
*/
@@ -782,7 +782,7 @@ Component.prototype = {
782782
var state = this.state;
783783
var context = this.context;
784784

785-
if ($updater.isPending || !$cache.isMounted) {
785+
if (!$cache.isMounted) {
786786
return;
787787
}
788788
var nextProps = $cache.props || props;

dist/react-lite.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* react-lite.js v0.15.29
2+
* react-lite.js v0.15.30
33
* (c) 2016 Jade Gu
44
* Released under the MIT License.
55
*/
@@ -786,7 +786,7 @@
786786
var state = this.state;
787787
var context = this.context;
788788

789-
if ($updater.isPending || !$cache.isMounted) {
789+
if (!$cache.isMounted) {
790790
return;
791791
}
792792
var nextProps = $cache.props || props;

dist/react-lite.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/react-lite.min.js.gz

-4 Bytes
Binary file not shown.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-lite",
3-
"version": "0.15.29",
3+
"version": "0.15.30",
44
"description": "an implementation of React that optimizes for small script size",
55
"main": "dist/react-lite.common.js",
66
"jsnext:main": "src/index.js",

src/Component.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ Component.prototype = {
140140
// },
141141
forceUpdate(callback) {
142142
let { $updater, $cache, props, state, context } = this
143-
if ($updater.isPending || !$cache.isMounted) {
143+
if (!$cache.isMounted) {
144144
return
145145
}
146146
let nextProps = $cache.props || props

0 commit comments

Comments
 (0)