Watchers
8 important questions on Watchers
What is reactive programming?
What is a stream?
What is a set?
- Higher grades + faster learning
- Never study anything twice
- 100% sure, 100% understanding
What is a MAP() ?
- key/value pairs remember their explicit ordering
- Perform better in scenarios involving frequent additions and removals
- Like Set(), you can only add key/value pairs once
- It has some nice methods, like size, has, set, clear and delete(key)
What does Vuejs do with a data object?
What is the goal of a proxy in Vuejs
- Performs dependency tracking
- Change notification when properties are changed or accessed
What are the two level of dependencies for components
- First level uses a map and stores dependencies for property
- Second level tracks the effects which will be run when the values change
How do we have access to new and old value in a watcher?
counter(newValue, oldValue){
console.log(`the counter has changed it was ${oldValue} and it is ${newValue}`)
}
}
The question on the page originate from the summary of the following study material:
- A unique study and practice tool
- Never study anything twice again
- Get the grades you hope for
- 100% sure, 100% understanding