ภาพรวม
store สำหรับแชร์ state ระหว่าง Vue component
ความเป็นมา
Pinia แยก state, getter และ action ของ store ออกจาก component พร้อม integration กับ Vue tooling
เหมาะกับงานแบบไหน
state ฝั่งแอปที่หลาย component ใช้ร่วมกัน
ข้อควรชั่งน้ำหนัก
แยก server state/cache และข้อมูลที่ควรอยู่เฉพาะ component ตรวจ SSR hydration กับขอบเขต store ต่อ request
