[aframe-state-component] Binding to global and local state at the same time
marlon360 opened this issue · 0 comments
marlon360 commented
I want to mix global and local state in my binding.
For example:
setAttribute(`bind-toggle__data-raycastable', `myGlobalState && ${this.data.localBooleanState}`)
This gets internally parsed to:
// if this.data.localBooleanState === true
state['myGlobalState'] && state['true']
// if this.data.localBooleanState === false
state['myGlobalState'] && state['false']
I don't want to add
true: true,
false: false
to my state.
Does it make sense to treat true
and false
as reserved keywords, that do not get parsed to state['true']
and state['false']
?