lxsmnsyc / solid-labels

Simple, reactive labels for SolidJS
MIT License
246 stars 8 forks source link

memo doesn't work when there's no param in member expression call expression #7

Closed mdynnl closed 2 years ago

mdynnl commented 2 years ago

sorry for weird description the code example should be self-explanatory


let count = $signal(0)
const double = $memo(count * 2) // works
const hex = $memo(double.toString(16)) // does works
$: var str = hex.toString()
// gets compiled to
// const str = createMemo (hex().toString)

CTF, labels, comments all the same

lxsmnsyc commented 2 years ago

Good catch, I'll check if I had some optimization step that might be including this unintentionally

lxsmnsyc commented 2 years ago

This should be fixed in 0.11.1