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

Add Getter/Setter creation capability #16

Open
kreonjr opened this issue Nov 30, 2021 · 0 comments
Open

Add Getter/Setter creation capability #16

kreonjr opened this issue Nov 30, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@kreonjr
Copy link
Owner

kreonjr commented Nov 30, 2021

OmniAural initial state should automatically create actions for set and get for any level of nested property when the property ends with an underscore.

initialState = {
   account: {
     name_: "",
     phone: 0
   }
}

This would create 2 actions:

  1. OmniAural.setAccountName()
  2. OmniAural.getAccountName()

Underscore gets removed on OmniAural property creation.

@kreonjr kreonjr added the enhancement New feature or request label Nov 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant