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

How to get rid of error&pending in setting a custom state? #95

Closed hamzamihaidanielx closed 5 years ago

christianmalek commented 5 years ago

Could you please elaborate?

hamzamihaidanielx commented 5 years ago

image

Like, i was telling, uhm, basically i want for my store there, the object just to have the property constants and nothing more, no pending or error properties. Is this possible somehow?

Thank you kindly :)

christianmalek commented 5 years ago

Oh. Sorry, that's not possible at the moment. error and pending will be created automatically.

hamzamihaidanielx commented 5 years ago

Oh. Sorry, that's not possible at the moment. error and pending will be created automatically.

Ah, i see. Well its not that bad tho, but would've been nice to actually have the store without them, maybe the next version, to be optional? I do not know.

Either way, thank you so much for this library, makes things way easier :). Hope this stays active in further development, its really great.

christianmalek commented 5 years ago

I've added it to v3! Unfortunately I don't have much time at the moment to do any "nice-to-have" changes to the library.

Thanks for your kind words. :)

hamzamihaidanielx commented 5 years ago

I've added it to v3! Unfortunately I don't have much time at the moment to do any "nice-to-have" changes to the library.

Thanks for your kind words. :)

Saw the v3 branch is behind compared to v2 in commits tho.

christianmalek commented 5 years ago

It's on a local branch.^^