QD
QD
SSolidJS
Created by QD on 7/19/2024 in #support
Is this a bug?
No description
3 replies
SSolidJS
Created by QD on 7/19/2024 in #support
Can i set a temp variable in template?
For example, if I have a for loop and each item is an object, can i set a variable to a part of the iterating object?
<Index each={bigList()}>{(item, i) =>
// access item().aaa.bbb.ccc.zzz
// access item().aaa.bbb.ccc.xxx
// access item().aaa.bbb.ccc.ccc
// access item().aaa.bbb.ccc.vvv
// access item().aaa.bbb.ccc.bbb
// access item().aaa.bbb.ccc.nnn

// can i set `item().aaa.bbb.ccc` to a temp variable?
}
</Index>
<Index each={bigList()}>{(item, i) =>
// access item().aaa.bbb.ccc.zzz
// access item().aaa.bbb.ccc.xxx
// access item().aaa.bbb.ccc.ccc
// access item().aaa.bbb.ccc.vvv
// access item().aaa.bbb.ccc.bbb
// access item().aaa.bbb.ccc.nnn

// can i set `item().aaa.bbb.ccc` to a temp variable?
}
</Index>
3 replies
SSolidJS
Created by QD on 7/11/2024 in #support
How to watch only one signal in createEffect?
createEffect(() => {
console.log(a(), b());
});
createEffect(() => {
console.log(a(), b());
});
a and b are from two signals, createEffect will watch both of them. Is it possible to watch only a while access the value of b?
7 replies
SSolidJS
Created by QD on 7/9/2024 in #support
Is there a more proper way to set value across components?
No description
6 replies