vuex
                                
                                 vuex copied to clipboard
                                
                                    vuex copied to clipboard
                            
                            
                            
                        🗃️ Centralized State Management for Vue.js.
Hello everyone! ## Prerequisites In my project, I do not use just a promise to do actions. Simplified version looks like this: ```js class CustomPromise { constructor({ promise }) {...
_DISCLAIMER: The use of [conditional types](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-8.html#conditional-types) and [`ReturnType`](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-8.html#predefined-conditional-types) in this PR requires the user to use at least Typescript 2.8. Right now the use of [generic parameter defaults](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-3.html#generic-parameter-defaults) in helper.d.ts...
This adds support for specifying options to `preserveState`, allowing to only skip default module state registration when the state already exists or to merge the existing state with the state...
As mentioned in: https://github.com/vuejs/vuex/issues/1467 Just making sure the arguments on getters are aligned with the actual usage, otherwise any typescript user is enquire to pass all arguments even if they...
When read for the first time it seems like modules substitute the store's assets, but they don't.
Fixes #1969 - refer to this issue for background and demo. This change only affects the developer experience, and only when using the Vue devtools extension (as far as I...
fixes #1993 Instead of creating a new promise, I'm proposing to use `Promise.resolve` to cast thenable returned by user's action to `Promise` (according to [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/resolve)) and then to chain it...
Providing generic support for actioncontext
Hello, I noticed, that the second parameter of ```Action``` doesn't have the ActionPayload type. Cheers