vuex-stateful-url

1.0.2 • Public • Published

Vuex StatefulURL

StatefulURL is a Vuex plugin that can read and write the state from a query string

Demo

demo.gif

They way it works is that it detects state changes and syncs a compressed object to a query string.

Installation

  • npm install --save vuex-stateful-url
// es6
// import StatefulURL from 'vuex-stateful-url';
// commonjs
const StatefulURL = require('vuex-stateful-url');

export default new Vuex.Store({
  // ...
  plugins: [
    // your other plugins...
    StatefulURL()
  ],
  // ...
});

Options

  • config.key: the query string value to sync the state. default = "state" (?state=blablabla)

License

LICENSE

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    1
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i vuex-stateful-url

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

5.35 kB

Total Files

4

Last publish

Collaborators

  • james2doyle