function unmountComponent (dom, component, remove) {
  // console.warn('unmounting mismatched component', component);

  hook(component, 'componentWillUnmount')
  if (remove !== false) {
    if (dom._component === component) {
      delete dom._component
      delete dom._componentConstructor
    }
    let base = component.base
    if (base && base.parentNode) {
      base.parentNode.removeChild(base)
    }
  }
  component._parentComponent = null
  hook(component, 'componentDidUnmount')
  componentRecycler.collect(component)
}
/** Remove a component from the DOM and recycle it.
 *    @param {Element} dom            A DOM node from which to unmount the given Component
 *    @param {Component} component    The Component instance to unmount
 *    @private
 */
Remove a component from the DOM and recycle it.
@param {Element} dom            A DOM node from which to unmount the given Component
@param {Component} component    The Component instance to unmount
@private
Remove a component from the DOM and recycle it . @param { Element } dom A DOM node from which to unmount the given Component @param { Component } component The Component instance to unmount @private
function unmountComponent (dom, component, remove) {
  hook(component, 'componentWillUnmount')
  if (remove !== false) {
    if (dom._component === component) {
      delete dom._component
      delete dom._componentConstructor
    }
    let base = component.base
    if (base && base.parentNode) {
      base.parentNode.removeChild(base)
    }
  }
  component._parentComponent = null
  hook(component, 'componentDidUnmount')
  componentRecycler.collect(component)
}
function unmountComponent ( dom , component , remove ) { hook ( component , 'componentWillUnmount' ) if ( remove !== false ) { if ( dom . _component === component ) { delete dom . _component delete dom . _componentConstructor } let base = component . base if ( base && base . parentNode ) { base . parentNode . removeChild ( base ) } } component . _parentComponent = null hook ( component , 'componentDidUnmount' ) componentRecycler . collect ( component ) }
Remove a component from the DOM and recycle it.
Remove a component from the DOM and recycle it .
// console.warn('unmounting mismatched component', component);