#Best Practice for NodeTypes
1 messages · Page 1 of 1 (latest)
My question is using union type for different nodeTypes is something ok or not
super common. the way to think about it is this:
nodeTypesis how react flow knows what component to render- a node's
datais how a component knows what to render
this is becomes just a domain modelling problem, when is something a single Thing that is configurable vs when is it multiple separate Things
if a panel is always the same structure but the content is different then i would consider that a single Panel nodetype and use node data as a way to configure the content.