SolidJSS
SolidJSโ€ข3y agoโ€ข
7 replies
Revxrsal

useParams() not changing when switching pages?

i'm getting really odd behavior
export default function EditRoutine() {
    const params = useParams();
    createEffect(() => {
        console.log("Params")
        console.log(params)
    })
   return <></>

"Params" only gets printed once, when going to the dynamic route for the first time. after that it stops changing. any idea?
Was this page helpful?