Just launched! Get 30% off Rails Revisited Have a Look

Application state with Pinia

Buy or Subscribe

You can access this course in just a minute, and support my efforts to rid the world of crappy online courses!

Buy Standalone  Subscribe

Weā€™re working our way ā€œoutside inā€, almost like hopping down the side of a building in Elden Ring, and weā€™ve reached the middle tier, descending from the components above.

Meet Pinia

Pinia is an optional centralized state store for larger applications, and weā€™re going to need it!

  • Install Pinia and fail!
  • Defining our first store, two ways.
  • Rob shares his opinion on which he prefers

Creating a Content Store

Letā€™s centralize how we pull content so we donā€™t repeat ourselves.

  • Creating the content store
  • Refactoring our existing pages and components
  • Discussion: how far do we take this?

As we go along: understanding the role of reactivity

A reactive bit of data changes across the application and is a core feature of all frontend frameworks.

  • The Reactive Pattern, quickly. Like global variables, but improved!
  • How to make something reactive in Vue, both old school and new
  • Dealing with confusion, Part 1