Skip to content

[SSR] Replace htmlIdGenerator usages with useGeneratedHtmlId in all function components #7093

Open

Description

@tkajtoch

Summary

We currently use both htmlIdGenerator() (44 usages) and useGeneratedHtmlId() (46 usages) in our function components. useGeneratedHtmlId() calls htmlIdGenerator() internally when running on React 17 and lower (see #7078) and neither of these functions is SSR compatible, generating different results on server- and client-side.

Acceptance Criteria

  • All function components should use useGeneratedHtmlId() hook to generate unique identifiers

Activity

  1. berkeli commented on Sep 30, 2023

    @berkeli

    Hi! I'm new around here. Would it be ok if I take this on?

  2. github-actions commented on Mar 28, 2024

    @github-actions

    👋 Hi there - this issue hasn't had any activity in 6 months. If the EUI team has not explicitly expressed that this is something on our roadmap, it's unlikely that we'll pick this issue up. We would sincerely appreciate a PR/community contribution if this is something that matters to you! If not, and there is no further activity on this issue for another 6 months (i.e. it's stale for over a year), the issue will be auto-closed.

  3. added
    stale-issue
    on Mar 28, 2024
  4. added and removed
    stale-issue
    on Mar 28, 2024
  5. added
    Stale
    on Oct 4, 2024
  6. removed
    Stale
    on Oct 14, 2024
  7. github-actions commented on Sep 22, 2025

    @github-actions

    👋 Hi there - this issue hasn't had any activity in 6 months. If the EUI team has not explicitly expressed that this is something on our roadmap, it's unlikely that we'll pick this issue up. We would sincerely appreciate a PR/community contribution if this is something that matters to you! If not, and there is no further activity on this issue for another 6 months (i.e. it's stale for over a year), the issue will be auto-closed.

  8. added
    stale-issue
    on Sep 22, 2025
  9. Exudev commented on Jan 20, 2026

    @Exudev

    Hey i would like to try to solve this issue.

  10. removed
    stale-issue
    on Jan 21, 2026
  11. added
    help wanted
    on Jun 18, 2026
  12. github-actions commented on Jun 18, 2026

    @github-actions

    👋 Thank you for your suggestion or request! While the EUI team agrees that it's valid, it's unlikely that we will prioritize this issue on our roadmap. We'll leave the issue open if you or anyone else in the community wants to implement it by contributing to EUI. If not, this issue will auto close in one year.

  13. vianmangal commented on Aug 4, 2026

    @vianmangal
    Contributor

    I’d like to work on this. I verified that the remaining function-component usages are generated SVG icon assets produced by scripts/compile-icons.js. I plan to update the generator to use useGeneratedHtmlId, regenerate the affected assets, and add focused coverage for stable, unique IDs/SSR behavior before opening a PR.

  14. weronikaolejniczak commented on Oct 6, 2026

    @weronikaolejniczak
    Contributor

    All the work belongs to #9455. Leaving this issue for tracking.

  15. removed
    help wanted
    on Nov 9, 2026
  16. removed their assignment
    on Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions