Different ways to creating a tab menu using components and ´layer´.text to trigger tapped tab.
I’m trying to create a tab menu using components and layer text to detect and trigger states on the tabs and screen changes. I see two ways to do this but I don’t understand the differences really. Grateful if someone can enlighten me. :)
Version 1 Looking at tutorials it seems common to send the ´layer´.text through the component channel. So from the child component when a tap is triggered to the parent component and then back through each tab to the child component.
Version 2
Uses similar logic that when a tap is triggered the child component sends the layer.text but it does it through the scene channel, so the message does not need to be received for each tab, nor sent back to each tab. It just sents it to the scenes.
Version 2 seems more lightweight to me. But is there any downsides to version 2 (apart from the need to keep track on the message not being received accidentally by something in the scene)?