Skip to content

Conversation

vladgrecu
Copy link
Member

}

if (value.type === 'dynamic') {
return `${identifier} ${operation} ${value.content.id}`
Copy link
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
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
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