The case for node components

What’s the case for NodeComponents? I mean, do we even need them? Having things like Align, Size, etc, live on a node rather than on a component of a Node seems a lot easier to keep track of between the UI thread and a Worker.

Any thoughts? I mean, can’t we just say that all nodes will always have a transform, always have a size, etc? Is there a case for Nodes without those properties?

What is a component? Is it a thing that manipulates a Node, for example, with an onUpdate method that gets called over and over?

I’d argue it’s actually more desirable to have them [in a multi-threaded context], because it makes it a lot easier to define how or where an individual component should run, without having to tie that behavior to the node itself.

1 Like