Improve Reference Component usability

XMLWordPrintable

    • Type: Task
    • Resolution: Fixed
    • Priority: L3 - Default
    • 1.0.0
    • Affects Version/s: None
    • Component/s: None
    • None

      Currently when you want to use the Reference component, you need to include the same two lines every time:

      const nodes = {};
      const Reference = createReferenceComponent(nodes);
      

      I would prefer a solution with a smaller footprint like

      const {Reference, nodes} = createReferenceComponent();
      // or
      const Reference = createReferenceComponent();
      const namedNode = Reference.namedNode;
      

      Ideally, I would love a solution where I don't need to call createReferenceComponent at all and just can access the nodes by Reference.nodeName, but I am not sure that is easily doable.

        This is the controller panel for Smart Panels app

              Assignee:
              Unassigned
              Reporter:
              Sebastian Stamm
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: