Vue · Middle · Question 9 of 75
How do you make a watch callback also run right away with the current value?
watch(() => route.params.id, loadUser, { immediate: true });- ✓Correct answer: Pass
{ immediate: true } - 2Call
watchtwice - 3Use
{ deep: true }
Explanation
By default watch is lazy and fires only on changes. immediate runs it once on creation; { once: true } (3.4+) stops it after the first trigger.