eui
eui copied to clipboard
[SSR] Replace htmlIdGenerator usages with useGeneratedHtmlId in all function components
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
Hi! I'm new around here. Would it be ok if I take this on?
👋 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.