Question · Vue.js course · Module 11: Pinia

$subscribe in Pinia

What does the $subscribe method do?

Answer options

  • Watches state changes and reacts to them
  • Subscribes to external events
  • Creates a subscription to the store
  • Removes the store from memory

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