davestewart / vuex-pathify

Vue / Vuex plugin providing a unified path syntax to Vuex stores
https://davestewart.github.io/vuex-pathify
MIT License
1.37k stars 57 forks source link

Add note: namespaced: true must be set for modules #12

Closed acan13 closed 6 years ago

acan13 commented 6 years ago

Very small change, but I think it would be helpful to have this in the docs somewhere, especially for new developers.

acan13 commented 6 years ago

Awesome job on the docs and on Pathify! I can't believe this isn't the built-in syntax for vuex.

Just wanted to add a quick note to one of the docs. You have to have namespaced: true in any store modules for the pathing to work. I did some experimenting to see if there were cases where it would work without that but I didn't find any. Most people will probably figure that out but I thought it might be nice to have something about it in the docs.

davestewart commented 6 years ago

Hey, good point, for beginners at least.

I made a comment to the same effect in the appendix section, but I agree it could be useful to include it here as well.

Your comment is a little ambiguous (it depends where you locate your store!) so I'll come up with something and will update the docs in the next code push.

Thanks for contributing and your appreciation!