S
SolidJS9mo 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
thetarnav9mo 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
n89mo ago
Got it figured out. That's that did it ^
thetarnav
thetarnav9mo ago
Also I think there is onBeforeLeave or something like this