Question · Vue.js course · Module 11: Pinia

Store Using Another Store

How can one Pinia store use another store?

Answer options

  • By calling useOtherStore() inside an action or getter
  • Through global imports only
  • Only via props
  • Stores cannot communicate with each other

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