Question · Vue.js course · Module 9: Composables & VueUse
Reactive Singleton
What does the Reactive Singleton pattern mean in composables?
Answer options
- Each call creates a new state
- State is defined outside the function - each call returns the same object
- The composable can only be called once
- State is stored in localStorage
You can check the correct answer by solving this task in the CodeWorlds game.