teleport-code-generators
teleport-code-generators copied to clipboard
Implement smart conditional renders
We had this implemented (#89 and #103) but with the new UIDL structure, this has to be thought differently. Perhaps we can have a step in the resolver that looks at boolean conditionals and decides if two conditionals which are one after another can be written in a smarter way:
- ternary in
react
:{ condition ? (branch - true) : (branch - false)
- v-if/v-else in
vue
Do you mean we could check UIDL and decide we can group conditionals together?
yes, like a step before the pipeline processing