Click in order · Vue.js course · Module 11: Pinia

Using storeToRefs

Arrange the elements to correctly use storeToRefs

Items to click

  • const store = useMissionStore()
  • import { storeToRefs } from 'pinia'
  • const { name, status } = storeToRefs(store)

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