Skip to content

Reset selected hero image on route change #145

@zigzagdev

Description

@zigzagdev

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions