An open API service indexing awesome lists of open source software.

https://github.com/kouts/vue-path-store

A simple state management solution for Vue, that uses the dot notation path syntax.
https://github.com/kouts/vue-path-store

dot dot-notation set state state-management store vue vuex

Last synced: 2 months ago
JSON representation

A simple state management solution for Vue, that uses the dot notation path syntax.

Awesome Lists containing this project

README

        

# vue-path-store ![](https://img.badgesize.io/kouts/vue-path-store/main/dist/umd/pathStore.min.js.svg) ![](https://img.badgesize.io/kouts/vue-path-store/main/dist/umd/pathStore.min.js.svg?compression=gzip) ![](coverage/badge.svg)

**PathStore** is a simple, lightweight, **shared** state management solution for Vue.
At its heart lays a simple reactive store, which uses the dot notation path syntax for data mutation.

It also comes with:

- a **[Vuex plugin](https://vue-path-store.netlify.app/path-store-vuex-plugin/)** so that you can use dot notation along with the
full power of Vuex (actions, getters, modules, devtools) as well.

- a **[Pinia plugin](https://vue-path-store.netlify.app/path-store-pinia-plugin/)** so that you can use dot notation with your favorite fruity store.

## Features

- Lightweight, minified gzip size is < **1.5kb**
- Share state easily between components using either the object or composition API
- Use dot (or bracket) notation for mutating state (set, delete)
- Creates intermediate reactive object/array structures if not available while setting state
- Avoid Vue [change detection caveats](https://vuejs.org/v2/guide/reactivity.html#Change-Detection-Caveats)
- Extra methods for `Array` manipulation
- Enhance Vuex with dot notation by utilizing the [PathStore Vuex Plugin](https://vue-path-store.netlify.app/path-store-vuex-plugin/)
- Enhance Pinia with dot notation by utilizing the [PathStore Pinia Plugin](https://vue-path-store.netlify.app/path-store-pinia-plugin/)

## Browsers support

| [IE / Edge](http://godban.github.io/browsers-support-badges/)
IE / Edge | [Firefox](http://godban.github.io/browsers-support-badges/)
Firefox | [Chrome](http://godban.github.io/browsers-support-badges/)
Chrome | [Safari](http://godban.github.io/browsers-support-badges/)
Safari | [Opera](http://godban.github.io/browsers-support-badges/)
Opera |
| --------- | --------- | --------- | --------- | --------- |
| IE11, Edge| last 2 versions| last 2 versions| last 2 versions| last 2 versions

Click here for documentation and examples
https://vue-path-store.netlify.app/