original_sin.
Problem duplicating a component navigating with dynamic routing
Based on the research i did it seems we need to track the params of the dynamic route that we want to track i.e that would be changed. So i think the outlet component will not render but we can capture the dynamic route param change event like this in the component :
createEffect(() => {
console.log("Params")
console.log(params.id)
})
Now when ever the params will change the createEffect will get triggered.
5 replies