SolidJSS
SolidJSโ€ข3y agoโ€ข
15 replies
adrien

How to untrack() or on() a props value?

Maybe I'm thinking about this the wrong way? But I'm wondering how to untrack() a props value the way you'd untrack() a signal in a createEffect for example. Since the reactive values in props are wrapped in a getter, it seems impossible to get the Accessor that can be used in untrack() or on().

I suppose I could derive a new Accessor with something like:

const thing = () => props.thing;


then untrack(thing) ? But that seems like a roundabout way of doing it, would that even make sense?

Thanks!
Was this page helpful?