@stencil/core
Version:
A Compiler for Web Components and Progressive Web Apps
1 lines • 393 B
JavaScript
import{r as s,g as t}from"./p-c001178f.js";class e{constructor(t){s(this,t),this.context={},this.renderer=()=>null}connectedCallback(){null!=this.subscribe&&(this.unsubscribe=this.subscribe(this.el,"context"))}disconnectedCallback(){null!=this.unsubscribe&&this.unsubscribe()}render(){return this.renderer(Object.assign({},this.context))}get el(){return t(this)}}export{e as context_consumer};