teleport-code-generators icon indicating copy to clipboard operation
teleport-code-generators copied to clipboard

Combine state keys in a single conditional render instruction

Open alexnm opened this issue 5 years ago • 0 comments

It might be useful at some point to render something based on two different state keys. Currently this could be done in theory, but in a hackish way with nested states.

Since we have the capability of describing different operations when rendering based on a state value, we could also introduce the state keys in the mix so that a single rendering instructions can be conditioned based on two different state values

React ex:

{ isVisible && isReady && <div>...</div> }

For vue, we have to implement state handling first, then figure this out as well

alexnm avatar Feb 24 '19 15:02 alexnm