Click in order · Vue.js course · Module 11: Pinia
Cross-Store Action
Arrange the elements to call an action from another store
Items to click
- }
- const notifStore = useNotificationStore()
- notifStore.add('Oxygen low!')
- oxygen.value -= amount
- function consumeOxygen(amount) {
You can check the correct answer by solving this task in the CodeWorlds game.