Skip to content

spb-web/vuexok

Repository files navigation

Поддержка пакета прекращена, рекомендую перейти на https://pinia.vuejs.org/

Vuex at powerful with Vuexok

npm bundle size

Vuexok does not replace the vuex api, but extends it by adding support for typescript and makes it possible to use actions and mutations without explicitly using commit and dispatch. Therefore, migration in most cases will be quick.

Features

  • No more constants needed for actions and mutations
  • More convenient work with watchers
  • Full typescript support
  • Easy migration from vuex. You don't have to rewrite everything
  • vuex 4 and vue 3 support
  • Small size vuexok
  • Calling actions from web workers
  • ssr support

Docs

https://spb-web.github.io/vuexok/

Install

NPM

npm install vuexok --save

Yarn

yarn add vuexok

Example

Used