Frontend & browser·Routing and navigation
you navigated from one profile to another and the component kept the previous user's data on screen.
Route parameter
Also calledpath param, dynamic segment
A variable segment of a path that identifies which record a route is showing. The trap is that navigating between two values of the same route reuses the component rather than remounting it, so anything initialised on mount does not re-run. Either key the component on the parameter or treat the parameter as a dependency everywhere it is read.