christianmalek / vuex-rest-api

A utility to simplify the use of REST APIs with Vuex
http://vuex-rest-api.org
MIT License
382 stars 48 forks source link

Add ability to add "namespaced" option for "getStore" #94

Closed geiseri closed 4 years ago

geiseri commented 5 years ago

In some cases, you want to have to have your API states in a module you need to supply a namespaced: true option. Right now I have to do modules: {api: {namespaced: true, ...api}} and I would rather be able to do a modules: {api} for less verbosity.

christianmalek commented 5 years ago

Hello @geiseri,

Thanks for your idea! I've added it to the feature ideas for v3.

wobsoriano commented 4 years ago

Hi, may I know how you guys currently do namespacing with this? Thank you!

christianmalek commented 4 years ago

Hello @sorxrob I didn't add a namespacing option yet. This is why @geiseri 's method is currenty the way to go. PRs are welcome if you want to implement it.

christianmalek commented 4 years ago

Added in #99