Skip to content

Commit

Permalink
+ Make new ComponentProps implementation more friendly to early access.
Browse files Browse the repository at this point in the history
+ Favor consistency with current behavior.
  • Loading branch information
lbwexler committed Jan 2, 2025
1 parent d363d5d commit b484cac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/model/HoistModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export abstract class HoistModel extends HoistBase implements Loadable {
*/
@computed({equals: comparer.shallow})
get componentProps(): DefaultHoistProps {
return this._componentProps;
return this._componentProps ?? {};
}

/**
Expand Down

1 comment on commit b484cac

@amcclain
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah great change 👍

Please sign in to comment.