-
Hello. I want to automatically update the variable in A component if value in B component (bind:this) changes it. I feel like a playground example will explain it well: Playground |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
What is the point of duplicating the state? This is not something one would usually do. If you add If you explain what you are really trying to do here instead (i.e. what user interaction the form & button should enable), maybe a better approach could be suggested. |
Beta Was this translation helpful? Give feedback.
Yes.
It is all manually wired up in the snippet, so I don't understand how things would end up in the wrong place.
Whether you use the exported prop or exported functions does not really matter, the former just gives you read and write access in one.