We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24606fe commit 4b91627Copy full SHA for 4b91627
libs/core/src/lib/renderer/react-template.ts
@@ -62,7 +62,9 @@ export class ReactTemplate<TContext extends object | void> extends React.Compone
62
63
componentDidUpdate() {
64
// Context has changes, trigger change detection after pushing the new context in
65
- Object.assign(this._embeddedViewRef.context, this.props.context);
+ if (this.props.context != null && this._embeddedViewRef.context != null) {
66
+ Object.assign(this._embeddedViewRef.context, this.props.context);
67
+ }
68
this._embeddedViewRef.detectChanges();
69
}
70
0 commit comments