Happy Holidays from the Mastering Pinia team π
Thank you to our amazing community of developers and learners.
Hereβs to more learning & fun projects in 2026!π
Happy Holidays from the Mastering Pinia team π
Thank you to our amazing community of developers and learners.
Hereβs to more learning & fun projects in 2026!π
The Black Friday weekend rush is over, but your chance isnβt. π
Cyber Monday gives you a final shot at up to 50% off Mastering Pinia.
Treat yourself, your future self will thank you. π
https://vue.school/mpbf25x
Interesting Fact: Pinia Coladaβs Infinite Scrolling ππ»
It simplifies pagination with a declarative approach, supporting both page-based and cursor-based navigation. A game-changer for Vue apps! Try it out and share feedback.
Whatβs your go-to strategy for debugging Pinia stores with Vue DevTools? Any pro tips? π
What new Pinia or Pinia Colada features are you hoping Posva will announce next? π
Are you leveraging Piniaβs TypeScript support for type-safe stores? Howβs it working for you? π€
Remember, it's consistent in Vue but differs in JavaScript.
A community member asked us:
How is the βv-for="[tabId, title]β Syntax used in tabList?
Our answerπ
This syntax is versatile, & you can use it directly in your code. Plus, you can also utilize "v-for="{ id, other } in" or replace "in" with "of" β all achieving the same result.
Learn how to build a Tabs Manager Solution using inject/provide for tightly-coupled Vue components. Boost your app's maintainability with this advanced dependency injection exercise.
Check it out now!
https://masteringpinia.com/lessons/creating-a-tabs-manager-solution
Fun Fact: Why the Name Pinia?
Did you know Pinia is named after "piΓ±a" (Spanish for pineapple)? π
It symbolizes individual stores joining together to form a single, delicious state management solution. A nod to Eduardo's creative naming! Try pronouncing it βpeenyaβ for fun.
Are you going to build anything this weekend with Pinia or Pinia colada?
If yes, feel free to share a link to your project! π€
π‘Advice: Optimize Pinia for SSR
Using Pinia with Nuxt? Always install Pinia before Pinia Colada for seamless SSR support. This ensures proper hydration and caching.
How do you combine Pinia stores with Pinia Colada for complex async state management?
Share your patterns! π
You have asked me this a lot, so here it is!
Announcing the Pinia Store π
pinia.store
Have you tried Pinia Coladaβs infinite scrolling API?
Whatβs your feedback on its declarative approach? π»
Whatβs the trickiest state management issue youβve faced with Pinia, and how did you solve it? π
π‘Tip of the day: Fetch data effortlessly with Pinia Coladaβs `useQuery`.
Automatic caching and deduplication included! How are you using useQuery?
How do you handle server-side rendering (SSR) with Pinia Colada in Nuxt apps?
Any tips for smoother integration? π‘
π’ Itβs coming! Certificates.Devβs Vue.js Free Weekend is Aug 23β24!
π FREE 48h Official Vue.js Mid-Level Cert Training: Pinia challenges, trial exam & more.
Letβs upgrade your skills: https://certificates.dev/vuejs/free-weekend
Are you using Pinia Coladaβs useQuery or useMutation in your projects?
How do they compare to TanStack Query? π€
π‘ Tip: Simplify Pinia Store Creation
Hereβs a quick counter store example:
Use it in your Vue component with `const counter = useCounterStore()`
Whatβs your favorite Pinia Colada feature for simplifying data fetching in Vue?
Letβs hear your use cases! π©βπ»
What would you do if someone opened an issue or discussion like this in your OSS repo? π
π π
Unit Testing Stores: What do you know about it?
Check out this lesson where we will cover everything there is to know about unit testing stores with Pinia. π
https://masteringpinia.com/lessons/unit-testing-stores
How do you organize your Pinia stores in large Vue 3 apps to keep them maintainable?
Share your folder structure! πͺ
π₯ Today we have a special announcement for you: Certificates.Devβs Vue.js Free Weekend is Aug 23β24!
Get 48h FREE Official Vue.js Mid-Level Cert Training with Pinia focus, code challenges & trial exam.
Are you ready? Sign up now: https://certificates.dev/vuejs/free-weekend
π‘Tip of the day: Pinia integrates with Vue Devtools for inspecting and debugging your stores.
Vue Devtools provides a dedicated tab for viewing and manipulating Pinia store state, making it easier to debug your application's state management.
π€A community member asked us: "How does the βn refβ keep its value once it is destroyed?β
π€ Hereβs our answer:
The βn: refβ syntax is used to create a reference that persists across component re-renders, the value stays untouched, just the reactivity stops working.
Create a basic Vue 3 `effectScope` π©βπ»
Vue offers effectScope as a container for reactive effects. You can create one using effectScope() and run effects within it using scope.run().