I have a Nextjs app witf 2 static routes, respectively locations and characters. Inside this you can find links that redirect to 2 dynamic routes, location/[lid] and character/[cid].
In my project I am using tanstack useQuery
Here's my problem: if I access character/[cid] first, and then navigate through the app and access location/[lid], the second page's useQuery data object will be the same that was fetched in the first page. This is causing some errors in my application, beacuse I'm trying to access properties that are not actually there