Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why the @ for path access is needed?!? #142

Open
pate313373 opened this issue Nov 17, 2021 · 2 comments
Open

Why the @ for path access is needed?!? #142

pate313373 opened this issue Nov 17, 2021 · 2 comments

Comments

@pate313373
Copy link

Hi!

I have previously used vuex-map-fields, which is even simpler than this library.
With vuex-map-fields, I could access a nested prop of an object just by using ".", here I need the "@".

I don't see any benefit in this syntax. I'm just wondering, if it wouldn't be better to simplify the path syntax in a next major release....

Kind regards

PS: Really like your library! Otherwise, I would still use vuex-map-fields.

@davestewart
Copy link
Owner

Hey!

Yes, I've thoughts similar.

At the time I think I decided it would be a good idea to be explicit.

Some developers will jump on "time saving" libraries, and at the time there was terrific disagreement about the "best way" or the "right way" to do Vuex / Flux.

I didn't want to risk the library being "rejected" so that was the decision I took.

By the way, have you tried using just a . ? I can't remember if I coded it to allow both or not...

@pate313373
Copy link
Author

Cool, happy you have similar thoughts!
I am not sure at all, but I think it's possible partially. So if I remember right, there are a few functions, which don't allow using "." only. - I'll keep you posted.

Thanks for the nice library, really like it so far. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants