How to transform into getters outside of props?

When you pass a prop into a component it is transformed into a getter like <MyProp color={color()}, the props are { get color() { return color() } }. Is there a way to trigger such compile transformation for normal js code, like creating a normal object and transforming it into an object of getters?
1 Reply
Jasmin
Jasmin4w ago
You have to do this manually maybe there are third party utilities that can do that automatically for you but solid doesn't have something like that afaik
Want results from more Discord servers?
Add your server