-
Notifications
You must be signed in to change notification settings - Fork 1
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
Fix(web-react): Icon component supports SSR #1128
Conversation
✅ Deploy Preview for spirit-design-system-demo canceled.
|
✅ Deploy Preview for spirit-design-system-validations canceled.
|
✅ Deploy Preview for spirit-design-system-storybook ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for spirit-design-system-react ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
☁️ Nx Cloud ReportCI is running/has finished running commands for commit 7a7c08b. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this CI Pipeline Execution ✅ Successfully ran 1 targetSent with 💌 from NxCloud. |
13b458e
to
df5ebf0
Compare
* `dangerouslySetInnerHtml` do not work while rendering on server * this `Warning: Prop `dangerouslySetInnerHTML` did not match.` error was raised * we can avoid this by wrapping the component with something like `<NoSsr>` * @see: https://stackoverflow.com/questions/64079321/react-tooltip-and-next-js-ssr-issue * or by using some library like ReactHtmlParser to render HTML string magically as a component * @see: https://www.npmjs.com/package/react-html-parser
df5ebf0
to
7a7c08b
Compare
Description
dangerouslySetInnerHtml
does not work while rendering on the serverWarning: Prop
dangerouslySetInnerHTMLdid not match.
error was raised<NoSsr>
Additional context
https://www.npmjs.com/package/react-html-parser
https://github.com/peternewnham/react-html-parser
https://stackoverflow.com/questions/39758136/how-to-render-html-string-as-real-html
https://stackoverflow.com/questions/64079321/react-tooltip-and-next-js-ssr-issue
Issue reference
Before submitting the PR, please make sure you do the following
fixes #123
).