From 02468539abeaf77f1a28064028245617834b87d8 Mon Sep 17 00:00:00 2001 From: mendespedro Date: Sat, 15 Jun 2024 15:44:15 -0300 Subject: [PATCH] fixing custom controller example --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f72eeda..1d35fff 100644 --- a/README.md +++ b/README.md @@ -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 }) }; } ```