S
SolidJS15mo ago
n8

How to create an effect that runs on page navigate

I think this should be fairly straightforward. How can I define a createEffect that runs each time navigation occurs?
3 Replies
thetarnav
thetarnav15mo ago
you can subscribe to location signal I think https://start.solidjs.com/api/useLocation
SolidStart Beta Documentation
SolidStart Beta Documentation
Early release documentation and resources for SolidStart Beta
n8
n8OP15mo ago
Got it figured out. That's that did it ^
thetarnav
thetarnav15mo ago
Also I think there is onBeforeLeave or something like this
Want results from more Discord servers?
Add your server