mdartic / vue-reactive-store

A VueX alternative : declarative + reactive + centralized way to structure your data store. Inspired by VueX and Vue.js . Compatible with vue-devtools.
MIT License
28 stars 2 forks source link

Do not change the action nature (async or not) #14

Closed mdartic closed 4 years ago

mdartic commented 4 years ago

When we create actions, VRS change the nature of the action function.

If the function is synchronous, it becomes an asynchronous function.

This is related to https://github.com/mdartic/vue-reactive-store/blob/master/src/wrapper.ts#L17 and the replacement of the initial action in https://github.com/mdartic/vue-reactive-store/blob/master/src/store.ts#L130 .

I think we don't have to change this nature.