fix: request resolution via OperationContainer on mount (#4358)

This commit is contained in:
kyle
2018-03-21 21:06:18 -07:00
committed by GitHub
parent 14ef0cc379
commit 1f9fb0e68d

View File

@@ -81,6 +81,15 @@ export default class OperationContainer extends PureComponent {
}
}
componentDidMount() {
const { isShown } = this.props
const resolvedSubtree = this.getResolvedSubtree()
if(isShown && resolvedSubtree === undefined) {
this.requestResolvedSubtree()
}
}
componentWillReceiveProps(nextProps) {
const { response, isShown } = nextProps
const resolvedSubtree = this.getResolvedSubtree()