-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Closed
Labels
please add a complete reproductionPlease add a complete reproduction.Please add a complete reproduction.
Description
Bug report
I think I've found a bug with hydration. I believe it's a bug of NextJS because I didn't have it before I switched to NextJS (from my custom SSR implementation).
Describe the bug
The following renders normally
<div dangerouslySetInnerHTML={{__html: "<span>xxx</span>"}}>
</div>
The following fails
<div dangerouslySetInnerHTML={{__html: "<img src='xxx'/>"}}>
</div>
on client with message
Warning: Prop
dangerouslySetInnerHTMLdid not match.
Server: "<img src="test" style="">"
Client: "<img src="test">"
Note the empty style tag which causes the mismatch.
System information
- Version of Next.js: 7.0.2
Metadata
Metadata
Assignees
Labels
please add a complete reproductionPlease add a complete reproduction.Please add a complete reproduction.