src/SlotContentMixin.js
function assignedNodesChanged(component) {

  const slot = component[symbols.contentSlot];
  const content = slot ?
    slot.assignedNodes({ flatten: true }) :
    null;

  // Make immutable.
  Object.freeze(content);
  
  component.setState({ content });
}
function assignedNodesChanged(component) {

  const slot = component[symbols.contentSlot];
  const content = slot ?
    slot.assignedNodes({ flatten: true }) :
    null;

  // Make immutable.
  Object.freeze(content);
  
  component.setState({ content });
}
function assignedNodesChanged ( component ) { const slot = component [ symbols . contentSlot ] ; const content = slot ? slot . assignedNodes ( { flatten : true } ) : null ; // Make immutable. Object . freeze ( content ) ; component . setState ( { content } ) ; }
The nodes assigned to the given component have changed. Update the component's state to reflect the new content.
The nodes assigned to the given component have changed . Update the component s state to reflect the new content .