When I read the Apache Dolphinscheduler Frontend code, which is written by Vue3, I find a code fragment very confusing me. So I post this for help.
For further actions, you may consider blocking this person and/or reporting abuse
For further actions, you may consider blocking this person and/or reporting abuse
vincanger -
Klecianny Melo -
Chris Jarvis -
Stokry -
Top comments (2)
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