We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
old lifecycle method is used:
Popover.prototype.componentWillReceiveProps = function (nextProps) { var _this = this; var willBeVisible = nextProps.visible; var _a = this.props, visible = _a.visible, fromRect = _a.fromRect, displayArea = _a.displayArea; if (willBeVisible !== visible) { if (willBeVisible) { this.setState({ contentSize: { width: 0, height: 0 }, isAwaitingShow: true, visible: true }); } else { this.startAnimation(false); } } else if (willBeVisible && (fromRect !== nextProps.fromRect || displayArea !== nextProps.displayArea)) { var geom = this.computeGeometry(nextProps, this.state.contentSize); var isAwaitingShow_2 = this.state.isAwaitingShow; this.setState(__assign({}, geom), function () { if (isAwaitingShow_2) { _this.startAnimation(true); } }); } };
This should be changed to componentDidUpdate
The text was updated successfully, but these errors were encountered:
Any news on this issue? thank you in advance
Sorry, something went wrong.
No branches or pull requests
old lifecycle method is used:
Popover.prototype.componentWillReceiveProps = function (nextProps) { var _this = this; var willBeVisible = nextProps.visible; var _a = this.props, visible = _a.visible, fromRect = _a.fromRect, displayArea = _a.displayArea; if (willBeVisible !== visible) { if (willBeVisible) { this.setState({ contentSize: { width: 0, height: 0 }, isAwaitingShow: true, visible: true }); } else { this.startAnimation(false); } } else if (willBeVisible && (fromRect !== nextProps.fromRect || displayArea !== nextProps.displayArea)) { var geom = this.computeGeometry(nextProps, this.state.contentSize); var isAwaitingShow_2 = this.state.isAwaitingShow; this.setState(__assign({}, geom), function () { if (isAwaitingShow_2) { _this.startAnimation(true); } }); } };
This should be changed to componentDidUpdate
The text was updated successfully, but these errors were encountered: