Skip to content

Stores

StarterStack uses the standard Vue3 Pinia data store. Views and Components do not directly make Ajax/Async api calls to fetch data. Views use components and stores and act as the controller to orchestrate data flow between the 2. Meaning, a View will call a store action to fecth data and load the store state. The View connects the component to the store's state Any updates to the store's state will automatically update the component.

There are 3 stores implemented in StartStack:

  • App Store - this is responsible for global application state.
  • User Store - this is responsible for user state including all user authentication actions
  • Stripe Store - this is responsible for all Stripe actions and state