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

Support interpolation in state strings #1

Open
Xiphe opened this issue Sep 11, 2017 · 1 comment
Open

Support interpolation in state strings #1

Xiphe opened this issue Sep 11, 2017 · 1 comment

Comments

@Xiphe
Copy link
Member

Xiphe commented Sep 11, 2017

In order to support dynamic state declarations

Given I have a state property state="onChange:set(${stateGroup}Prename)"
When I transform the property
Then I expect the transformed option to be

state={[{ as: 'onChange', setter: 'set', key: `${stateGroup}Prename` }]}

cc @lassediercks

@Xiphe
Copy link
Member Author

Xiphe commented Sep 11, 2017

Or better only when used like this:

state={`onChange:set(${stateGroup}Prename)`}

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