Results 22 comments of Thomas Mur

I found a solution for the code that uses the store and calls `dispatch`, `commit`, `getters` and the `state`. For example: store.dispatch("myModule/myAction", myPayload); … is replaced by a wrapper: store.dispatch.myModule.myAction(myPayload);...

It should work. Maybe you could add some debug log: ```ts join(context) { const directContext = storeActionContext(context); Server.instance.send('something').subscribe((message)=>{ console.log("directContext", directContext); directContext.rootCommit.chat.addMessage(message); }) } ```

You write `new Vuex.Store`. Could it be possible to use `createDirectStore` instead?

In your code: ```ts const store = new Vuex.Store({ state: state, mutations: mutations, actions: actions }); // Act const wrapper = shallowMount(Notes, { store }); ``` … I guess it...

> could that work with the current import of the store? (the recommendation) (in the vue component, not the test) It should work.

They still can be added to the original vuex store…

> @paleo true but could i access them directly or would i need to use magic string? The original Vuex string system would be needed. Maybe a solution could be...

… but I'll accept pull requests with useful new features.

Hi. I suggest you edit `node_modules/direct-vuex/types/direct-types.d.ts`. Line 24, change the type of `original` to `any`. If it works, I can consider to publish the package with this workaround. I think...

No… For the moment I don't intend to work on this feature. Sorry.