sanger / traction-ui

MIT License
2 stars 5 forks source link

DPL-850 - Investigate the work required to replace VueX with Pinia as the state management library #1279

Open stevieing opened 1 year ago

stevieing commented 1 year ago

Description Investigate the work required to replace VueX with Pinia as the state management library.

We currently use VueX but Pinia has now become the defacto recommended state management library for Vue 3. It is more lightweight, removes the need for mutations, allows for multiple stores (fits better with traction) and provides out of the box support for Typescript.

This would allow us to remove technical debt and support a move to typescript which should reduce maintenance and bugs across the board.

It would also allow us to standardise how we use the store throughout traction.

Who the primary contacts are for this work Steve

Knowledge or Stake holders Other people that may have specific knowledge about this work or have a stake in how it is implemented. e.g. John Smith is an expert on x

Additional context or information Pinia

seenanair commented 1 year ago

@stevieing @BenTopping VueX to Pinia migration notes VueX to Pinia.docx