Teach · Teacher · Submissions
🌐 EN
GM
Modern JS & Vue 3

Submissions

All (8)
Ungraded (5)
Late (3)
Returned (3)
8 submissions
NB
Nino Beridze
Pinia store exercise
Ungraded
Vue 3 · 14 Jun, 22:41
LK
Luka Kapanadze
Vue Router quiz
Ungraded
Vue 3 · 14 Jun, 19:12
MT
Mariam Tsiklauri
Pinia store exercise
Late
Vue 3 · 13 Jun, 01:15
DG
Davit Gelashvili
Component refactor
Late
Vue 3 · 12 Jun, 23:58
SK
Salome Khurtsidze
Vue Router quiz
Ungraded
Vue 3 · 15 Jun, 08:05
Previously returned
GK
Giorgi Kvaratskhelia
Component refactor
Returned
Vue 3 · 12 Jun · 84 / 100
AJ
Ana Janelidze
Component refactor
Returned
Vue 3 · 11 Jun · 79 / 100
NB
Nino Beridze
Component refactor
Returned
Vue 3 · 11 Jun · 91 / 100
NB
Nino Beridze
[email protected] · Vue 3 — Spring 2026
Ungraded
Submitted 14 Jun, 22:41

Pinia store exercise

Assignment · Lesson 9 · Due 14 Jun
On time
Student's notes
I implemented a product cart store using Pinia with three getters (cartTotal, itemCount, hasItems) and two actions (addItem, removeItem). I used storeToRefs in the CartSidebar component to keep the reactive bindings without destructuring issues. One thing I wasn't sure about — should cartItems be a ref or a reactive array inside defineStore? I went with ref() based on the docs example. Please let me know if this is the preferred pattern.

Grade this submission

Score
/
100
Quick grade