S
SolidJS16mo 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
thetarnav16mo 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
n8OP16mo ago
Got it figured out. That's that did it ^
thetarnav
thetarnav16mo ago
Also I think there is onBeforeLeave or something like this
Want results from more Discord servers?
Add your server