This repo takes a look at Vue state management where part of the state is stored in the URL so it can be shared as a link.
The vue router is source of truth for the state stored in the URL:
- menu selection
- entity type ID
- page number
- page size
- sort order
The vuex store contains application state:
- error message toasts
And functions as server cache plus loading state for
- metadata
- data
vue-router-sync is used to add a route module to the vuex store. Typed vuex getters interpret the route parameters and provide sensible defaults
The data explorer view watches the getters to trigger fetching of data and metadata.
yarn install
yarn serve
yarn build
yarn test:unit
yarn test:e2e
yarn lint