Question · Vue.js course · Module 3: Reactivity
When to use shallowRef
When is it best to use shallowRef()?
Answer options
- Always, because it's faster
- For large objects where you only need to track whole-value replacement
- For primitive values
- For small, simple objects
You can check the correct answer by solving this task in the CodeWorlds game.