It's defining a watcher to a reactive state with the composition API. In the first argument was passed a getter to the value to be watched, wich in this case is a ref value (could've used just the ref itself, but in this case the watch would be deep) and in the second was passed the function to be executed whenever this value changes.
It's defining a watcher to a reactive state with the composition API. In the first argument was passed a getter to the value to be watched, wich in this case is a ref value (could've used just the ref itself, but in this case the watch would be deep) and in the second was passed the function to be executed whenever this value changes.
thanks your reply. I get it. Thanks