-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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: remote CSS does not get rebuilt properly #1618
fix: remote CSS does not get rebuilt properly #1618
Conversation
This fixes an issue where inlined CSS from a remotely loaded `<link>` does not get applied properly due to object reference mutation.
🦋 Changeset detectedLatest commit: f398551 The changes in this PR will be included in the next version bump. This PR includes changesets to release 19 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
I can't make changes directly on this branch; Would you be able to
|
The Object.assign bit was introduced in #995 |
@billyvg The only difference is that Object.assign overwrites the attribute value in the mirror. Your change does not change the meta in the mirror. |
@YunFeng0817 Yeah so I'm not sure if we are relying on changing the meta in the mirror elsewhere. The reason for this change is as follows: |
@billyvg Thank you for the clean explanation. I now understand the cause of the issue. Can you add
to the place after the newNode is created? This can keep the mirror sync with Dom status |
f398551
to
35b8eaf
Compare
@YunFeng0817 Updated! |
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.
LGTM
This fixes an issue where inlined CSS from a remotely loaded
<link>
does not get applied properly due to object reference mutation.