lit-dom-expressions 0.34.2 → 0.34.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -554,7 +554,7 @@ function createHTML(r, { delegateEvents = true } = {}) {
|
|
|
554
554
|
processChildren(node, options);
|
|
555
555
|
if (topDecl) {
|
|
556
556
|
options.decl[0] = options.hasCustomElement ?
|
|
557
|
-
`const ${tag} = document.importNode(tmpls[${templateId}].content.firstChild, true)` :
|
|
557
|
+
`const ${tag} = r.untrack(() => document.importNode(tmpls[${templateId}].content.firstChild, true))` :
|
|
558
558
|
`const ${tag} = tmpls[${templateId}].content.firstChild.cloneNode(true)`;
|
|
559
559
|
}
|
|
560
560
|
} else if (node.type === "text") {
|
|
@@ -558,7 +558,7 @@ function createHTML(r, { delegateEvents = true } = {}) {
|
|
|
558
558
|
processChildren(node, options);
|
|
559
559
|
if (topDecl) {
|
|
560
560
|
options.decl[0] = options.hasCustomElement ?
|
|
561
|
-
`const ${tag} = document.importNode(tmpls[${templateId}].content.firstChild, true)` :
|
|
561
|
+
`const ${tag} = r.untrack(() => document.importNode(tmpls[${templateId}].content.firstChild, true))` :
|
|
562
562
|
`const ${tag} = tmpls[${templateId}].content.firstChild.cloneNode(true)`;
|
|
563
563
|
}
|
|
564
564
|
} else if (node.type === "text") {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lit-dom-expressions",
|
|
3
3
|
"description": "A Fine-Grained Rendering Runtime API using Tagged Template Literals",
|
|
4
|
-
"version": "0.34.
|
|
4
|
+
"version": "0.34.5",
|
|
5
5
|
"author": "Ryan Carniato",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"prepare": "npm run build"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"dom-expressions": "^0.34.
|
|
22
|
+
"dom-expressions": "^0.34.5",
|
|
23
23
|
"html-parse-string": "^0.0.8"
|
|
24
24
|
},
|
|
25
|
-
"gitHead": "
|
|
25
|
+
"gitHead": "cf98663093139bb1d6847359732b2f7235d30b61"
|
|
26
26
|
}
|
package/types/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
declare type MountableElement = Element | Document | ShadowRoot | DocumentFragment | Node;
|
|
2
2
|
interface Runtime {
|
|
3
3
|
effect<T>(fn: (prev?: T) => T, init?: T): any;
|
|
4
|
+
untrack<T>(fn: () => T): T;
|
|
4
5
|
insert(parent: MountableElement, accessor: any, marker?: Node | null, init?: any): any;
|
|
5
6
|
spread<T>(node: Element, accessor: (() => T) | T, isSVG?: Boolean, skipChildren?: Boolean): void;
|
|
6
7
|
createComponent(Comp: (props: any) => any, props: any): any;
|