Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,18 @@ export class AngularPConnectService {
// console.log( ` validatemessage for ${inComp.constructor.name} ${inComp.angularPConnectData.compID}: ${compProps.validatemessage}`);
}

return {
const result: any = {
...compProps,
...addProps
};

// Include inheritedProps in comparison (matches React SDK areStatePropsEqual in react_pconnect.jsx)
const stateProps = inComp.pConn$.getStateProps();
if (stateProps?.inheritedProps) {
result.inheritedProps = inComp.pConn$.getInheritedProps();
}

return result;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,12 @@ export class ComponentMapperComponent implements OnInit, OnDestroy, OnChanges {
this.loadComponent();
}
} else if (this.isInitialized) {
const prevPConn = this.componentRef?.instance?.pConn$;
this.bindInputProps();
// When pConn$ changes, re-evaluate the component
if (prevPConn && this.props?.pConn$ && prevPConn !== this.props.pConn$) {
this.componentRef?.instance?.onStateChange?.();
}
}
}

Expand Down
Loading