Skip to content

Commit

Permalink
Fix incorrect _children for Suspense
Browse files Browse the repository at this point in the history
  • Loading branch information
marvinhagemeister committed Jun 26, 2019
1 parent 78d3783 commit b0fe5e7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion compat/src/suspense.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ Suspense.prototype._childDidSuspend = function(promise) {
unmount(_this.props.fallback);

// make preact think we had mounted the _parkedChildren previously...
_this._vnode._children = _this._parkedChildren;
if (_this._parkedChildren) {
_this._vnode._children = _this._parkedChildren;
}
// reset the timeout & clear the now no longer parked vnode
_this._timeout = _this._parkedChildren = null;

Expand Down

0 comments on commit b0fe5e7

Please sign in to comment.