Skip to content

Commit

Permalink
fix(core/reactShims): Fix first render when receiving props before $s…
Browse files Browse the repository at this point in the history
…cope is set (#4890)
  • Loading branch information
christopherthielen committed Feb 21, 2018
1 parent 59783ae commit 0bb815e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/scripts/modules/core/src/reactShims/AngularJSAdapter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ export class AngularJSAdapter extends React.Component<IRenderAngularJSProps> {
}

public componentWillReceiveProps(nextProps: IRenderAngularJSProps) {
this.$scope.props = nextProps;
if (this.$scope) {
this.$scope.props = nextProps;
}
}

private refCallback(ref: Element) {
Expand Down

0 comments on commit 0bb815e

Please sign in to comment.