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

Nested objects #1

Open
vladi-strilets opened this issue Mar 8, 2021 · 0 comments
Open

Nested objects #1

vladi-strilets opened this issue Mar 8, 2021 · 0 comments

Comments

@vladi-strilets
Copy link

It would be nice to have the option to set and get nested objects while maintaining the observable functionality.

Example:

VueValuesStore.setDefaultState({
  user: {
    name: "UserName",
    email: "[email protected]"
  }
})

And then access to them like that:

const userName = VueValuesStore.value.get('user.name')
// or
const userName = VueValuesStore.value.get(['user', 'name'])

Should it be refactored to the lodash _.get format? https://lodash.com/docs/4.17.15#get

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

1 participant