Dynamic Route Being Called Twice
Okay, this is kind of weird. I am encountering a weird error in my
islands/:id
route (see image for file structure). This should be pretty straightforward. When you navigate to www.mysite.com/islands/some-id
, it should load data based on the ID in the URL.
Here is page code:
However, I am getting this weird behavior where the route is being loaded twice: the first is correct, loads the data using the correct id... but then its somehow called again with the value of the id param being... my logo.svg file? Here's the log output from that component:
The "Searching for id ...." log is coming from the getIslandById()
call in my resource fetcher, which is passed the params.id1 value.
Any help as to what I did wrong would be appreciated. I have no idea why its randomly assigning my site logo filename to
params.id`... Or, why its being called twice for that matter.1 Reply
Oh wait. Fixed it. ust a screw up on my end. My bad.