(component, context = EMPTY_OBJ)
| 142 | } |
| 143 | |
| 144 | export function getChildContext (component, context = EMPTY_OBJ) { |
| 145 | if (isFunction(component.getChildContext)) { |
| 146 | return extend(clone(context), component.getChildContext()) |
| 147 | } |
| 148 | return clone(context) |
| 149 | } |
| 150 | |
| 151 | export function renderComponent (component: Component<any, any>) { |
| 152 | CurrentOwner.current = component |
no test coverage detected