Description:
When the route param (heritage ID) changes, reset selectedImage to the new heritage’s primary image.
Selecting a thumbnail must not change the URL; it should only update UI state.
Acceptance Criteria:
- Clicking a gallery thumbnail updates the hero image without changing the URL.
- Navigating from
/heritages/1 to /heritages/2 resets selectedImage to the new heritage’s primary (or first) image.
- No stale selection remains after route change.
Description:
When the route param (heritage ID) changes, reset selectedImage to the new heritage’s primary image.
Selecting a thumbnail must not change the URL; it should only update UI state.
Acceptance Criteria:
/heritages/1to/heritages/2resets selectedImage to the new heritage’s primary (or first) image.