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

React id mismatch with SSR font awesome mask #550

Open
flippidippi opened this issue Apr 11, 2023 · 1 comment
Open

React id mismatch with SSR font awesome mask #550

flippidippi opened this issue Apr 11, 2023 · 1 comment

Comments

@flippidippi
Copy link

Describe the bug
With Next.js/SRR, Getting errors like Prop id did not match. Server: "clip-EcZ4B045I3jF" Client: "clip-MBNTauDeff3J". when using mask.

Reproducible test case

Expected behavior
The id should be the same on the server and client

Desktop (please complete the following information):

  • Browser [e.g. chrome, safari]: Edge
  • Version: 112.0.1722.34

Additional context
N/A

@altearius
Copy link

I've also noticed this.

I believe I have tracked this down to the usage of nextUniqueId() function on line 1498 of @fortawesome/fontawesome-svg-core/index.js.

I suspect nextUniqueId() should be replaced by useId() for React 18+, though I am not sure how best to support lower React versions.

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