Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unique ID generated when using a "title" breaks SSR #491

Closed
sei-jdshimkoski opened this issue Jan 11, 2024 · 1 comment
Closed

Unique ID generated when using a "title" breaks SSR #491

sei-jdshimkoski opened this issue Jan 11, 2024 · 1 comment

Comments

@sei-jdshimkoski
Copy link

Describe the bug
When a title attribute is added to an icon, FontAwesomeIcon generates a unique ID... unfortunately, this unique ID does not work in an SSR environment. The ID is different on the server and the client.

Reproducible test case

<FontAwesomeIcon icon="user" title="User" />

Expected behavior
The unique ID should be the same on the server and the client.

Desktop (please complete the following information):

  • Microsoft Edge
  • 120.0.2210.121 (Official build) (arm64)

Additional context
You can see this repo for an example on how to create SSR-friendly unique IDs: https://github.com/shimyshack/uid

@robmadole
Copy link
Member

@sei-jdshimkoski this is not documented well but you can set props titleId and maskId to prevent these from being auto-generated. Give that a try and let us know if that doesn't work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants