solid-ctrl-flow 1.0.3 → 1.0.4
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.
- package/dist/flow.mjs +2 -3
- package/dist/flow.umd.js +2 -3
- package/package.json +1 -1
package/dist/flow.mjs
CHANGED
|
@@ -73,15 +73,14 @@ function Source(props) {
|
|
|
73
73
|
return props.children;
|
|
74
74
|
if (obj.source)
|
|
75
75
|
throw new Error("An extractor can't have more than one source");
|
|
76
|
-
|
|
77
|
-
obj.source = createMemo(memo);
|
|
76
|
+
obj.source = () => props.children;
|
|
78
77
|
onCleanup(() => obj.source = void 0);
|
|
79
78
|
return createComponent(Show, {
|
|
80
79
|
get when() {
|
|
81
80
|
return !obj.attached;
|
|
82
81
|
},
|
|
83
82
|
get children() {
|
|
84
|
-
return
|
|
83
|
+
return obj.source();
|
|
85
84
|
}
|
|
86
85
|
});
|
|
87
86
|
}
|
package/dist/flow.umd.js
CHANGED
|
@@ -75,15 +75,14 @@
|
|
|
75
75
|
return props.children;
|
|
76
76
|
if (obj.source)
|
|
77
77
|
throw new Error("An extractor can't have more than one source");
|
|
78
|
-
|
|
79
|
-
obj.source = solidJs.createMemo(memo);
|
|
78
|
+
obj.source = () => props.children;
|
|
80
79
|
solidJs.onCleanup(() => obj.source = void 0);
|
|
81
80
|
return solidJs.createComponent(solidJs.Show, {
|
|
82
81
|
get when() {
|
|
83
82
|
return !obj.attached;
|
|
84
83
|
},
|
|
85
84
|
get children() {
|
|
86
|
-
return
|
|
85
|
+
return obj.source();
|
|
87
86
|
}
|
|
88
87
|
});
|
|
89
88
|
}
|