-
Notifications
You must be signed in to change notification settings - Fork 47.2k
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
[fizz] fix empty string href double warning #31783
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Comparing: e06c72f...3e7761c Critical size changesIncludes critical production bundles, as well as any change greater than 2%:
Significant size changesIncludes any change greater than 0.2%: (No significant changes) |
It's probably expressible with the server integration tests somehow. But you can test it in |
@sebmarkbage see my comment in the description about the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also seems like the removeAttribute here should be changed?
No I think that's correct because the server also omits the attribute.
@sebmarkbage I repro'd in the fixture and this doesn't fix it (or I'm missing a feature flag or something). What happens today (same on main and this PR, I added logs, and don't think this branch is actually getting hit): I'm confused what the behavior you're expecting is? The server and the client both strip the attribute, but the prop is still empty string. So react/packages/react-dom-bindings/src/client/ReactFiberConfigDOM.js Lines 1141 to 1142 in ef63718
I'll push a commit that fixes this so you can see the difference. |
a42f0d3
to
6052c9a
Compare
I think this is the suggested change from #31765 (comment)
But no tests fail and I'm not sure how to test it? Seems sus.
Also seems like the
removeAttribute
here should be changed?react/packages/react-dom-bindings/src/client/ReactDOMComponent.js
Lines 400 to 427 in 9d9f12f