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

Did you find this page helpful?