Mastering Pinia

@masteringpinia.com

🍍Transform your Vue.js state management skills with Mastering Pinia 📚 Developed by the author of Pinia 🚀 From BitterBrains, powered by @vueschool.io

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.

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.

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.

💡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.

Bild

🤔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.