Skip to content

Commit

Permalink
fixing custom controller example
Browse files Browse the repository at this point in the history
  • Loading branch information
p-schlickmann authored and skryukov committed Jun 16, 2024
1 parent a3edc55 commit 0246853
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export default class extends TurboMountController {
onChange = (color) => {
// same as this.propsValue = { ...this.propsValue, color };
// but skips the rerendering of the component:
this.componentProps = { ...this.propsValue, color };
this.setComponentProps({ ...this.propsValue, color })
};
}
```
Expand Down

0 comments on commit 0246853

Please sign in to comment.