Question · Vue.js course · Module 11: Pinia

Where to Call useStore()?

Where should useStore() be called when using stores in other stores?

Answer options

  • Inside actions/getters, not at the top level of the store
  • Only at the top level of the file
  • In the main.js file
  • Anywhere, it does not matter

You can check the correct answer by solving this task in the CodeWorlds game.