Click the link below for a sample of what I am attempting to do with Vue:
In my application, multiple parts of the data in storage need the same input format. So, I aim to make a generic input form that will take values from the parent component and establish a two-way connection between them, updating the main component's store. Since it is uncertain which value the input component manages at the input component level, altering the store directly in the child component isn't feasible.
However, when I follow the configuration provided in the example, the store doesn't update when the input values change. The reason behind this eludes me.
This appears to be due to Vue being unable to detect changes in the object. Reactivity is restored if v-model directives in the child are removed and replaced with :value and @input, followed by handlers that fully overwrite the model.value object. Refer to the link below for a functional demonstration. My comprehension might not be completely accurate, and there could be a way to achieve this using the simpler v-model.