How much compiler magic does SolidJS use?
When I started learning SolidJS, a lot of things seemed like magic because I failed to read the explanation of how they worked (or there wasn't one).
Tracking Scopes
Reactivity of props
etc
These are not magic. I have learnt that tracking scopes work because when a reactive value is read it reads some kind of global state to find out what tracking scope called it and add the tracking scope as a dependency. Signals expose their reactivity with a getter, and props can hide the getter with an actual
So when Vite builds my solidjs app, is there anything special going on to make SolidJS work?
Tracking Scopes
Reactivity of props
etc
These are not magic. I have learnt that tracking scopes work because when a reactive value is read it reads some kind of global state to find out what tracking scope called it and add the tracking scope as a dependency. Signals expose their reactivity with a getter, and props can hide the getter with an actual
get function because it is behind property access.So when Vite builds my solidjs app, is there anything special going on to make SolidJS work?
