MCPcopy Create free account
hub / github.com/bigskysoftware/_hyperscript / _setupReactiveEffect

Method _setupReactiveEffect

www/js/ext/component.js:766–777  ·  view source on GitHub ↗
(source)

Source from the content-addressed store, hash-verified

764 this._hypercomp_stamped = false;
765 }
766 _setupReactiveEffect(source) {
767 var self2 = this;
768 reactivity.createEffect(
769 function() {
770 return self2._renderTemplate(source);
771 },
772 function(html) {
773 self2._stampTemplate(html);
774 },
775 { element: self2 }
776 );
777 }
778 _renderTemplate(source) {
779 var ctx = runtime.makeContext(this, null, this, null);
780 var buf = [];

Callers 1

connectedCallbackMethod · 0.45

Calls 3

createEffectMethod · 0.45
_renderTemplateMethod · 0.45
_stampTemplateMethod · 0.45

Tested by

no test coverage detected