Skip to content

Getting Started

Introduction

Pinia Generic provides helper functions and types to create generic stores, and/or split up your store into multiple files.

Generic stores aren't of much use on their own, but they can be extended to create regular stores that inherit their state, getters and actions. Generic stores are centered around generic types, which can be the whole state, or a property of the state.

Where to go from here

Installation

bash
npm i pinia-generic
bash
yarn add pinia-generic
bash
pnpm add pinia-generic
bash
ni pinia-generic