Skip to content

Commit

Permalink
[IMP] Pass the property as linkedProp
Browse files Browse the repository at this point in the history
This can give property renderers which only render a single property a great speed boost, since they can now be implemented with a plain function
  • Loading branch information
Fletcher91 committed Jan 10, 2017
1 parent 8d0cf01 commit 7b69437
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/react/components/Property.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class Property extends PropertyBase {
}
const Klass = this.getLinkedObjectClass();
if (Klass) {
return <Klass {...this.props} />;
return <Klass linkedProp={obj} {...this.props} />;
}
if (obj) {
return (<div>{obj}</div>);
Expand Down

0 comments on commit 7b69437

Please sign in to comment.