solid-ctrl-flow 1.0.36 → 1.0.37
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/index.mjs +2 -2
- package/dist/index.umd.js +2 -2
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -105,7 +105,7 @@ function Dest() {
|
|
|
105
105
|
function Source(props) {
|
|
106
106
|
const obj = useContext(this);
|
|
107
107
|
if (!obj)
|
|
108
|
-
return props.children;
|
|
108
|
+
return createMemo(() => props.children);
|
|
109
109
|
const order = createMemo(() => props.order || 0);
|
|
110
110
|
const info = {
|
|
111
111
|
get order() {
|
|
@@ -116,7 +116,7 @@ function Source(props) {
|
|
|
116
116
|
}
|
|
117
117
|
};
|
|
118
118
|
obj.source.push(info);
|
|
119
|
-
onCleanup(() => obj.source.splice(obj.source.indexOf(info), 1));
|
|
119
|
+
onCleanup(() => obj.source.splice(obj.source.indexOf(createMutable(info)), 1));
|
|
120
120
|
return createComponent(Show, {
|
|
121
121
|
get when() {
|
|
122
122
|
return !obj.attached;
|
package/dist/index.umd.js
CHANGED
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
function Source(props) {
|
|
108
108
|
const obj = solidJs.useContext(this);
|
|
109
109
|
if (!obj)
|
|
110
|
-
return props.children;
|
|
110
|
+
return solidJs.createMemo(() => props.children);
|
|
111
111
|
const order = solidJs.createMemo(() => props.order || 0);
|
|
112
112
|
const info = {
|
|
113
113
|
get order() {
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
}
|
|
119
119
|
};
|
|
120
120
|
obj.source.push(info);
|
|
121
|
-
solidJs.onCleanup(() => obj.source.splice(obj.source.indexOf(info), 1));
|
|
121
|
+
solidJs.onCleanup(() => obj.source.splice(obj.source.indexOf(store.createMutable(info)), 1));
|
|
122
122
|
return solidJs.createComponent(solidJs.Show, {
|
|
123
123
|
get when() {
|
|
124
124
|
return !obj.attached;
|