Skip to content

Support Dynamic values and Expression as operand of a Conditional Element#960

Open
vladgrecu wants to merge 1 commit into
developmentfrom
feat/THQ-4151
Open

Support Dynamic values and Expression as operand of a Conditional Element#960
vladgrecu wants to merge 1 commit into
developmentfrom
feat/THQ-4151

Conversation

@vladgrecu
Copy link
Copy Markdown
Member

}

if (value.type === 'dynamic') {
return `${identifier} ${operation} ${value.content.id}`
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For dynamic. If i remember correct we need to use options.dynamicPrefix to prefix the value with props by default or with a different name when needed.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm actually thinking that we don't even need to treat this flow. In what code generation pipeline is it used? For non React frameworks?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Even for reach framework too, in content.id we store only the id value. So, using dynamicPrefix we can get generated code like props.id

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

Successfully merging this pull request may close these issues.

2 participants