-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Fix issue with rehydrated style tags not taking into account prepend option #1696
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
Conversation
🦋 Changeset is good to goLatest commit: 6140fae We got this. 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 |
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 6140fae:
|
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.
One little thing, other than that, LGTM
packages/sheet/src/index.js
Outdated
@@ -84,20 +84,27 @@ export class StyleSheet { | |||
this.before = null | |||
} | |||
|
|||
_insertTag = (tag = createStyleElement(this)) => { |
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.
This will probably be slightly smaller if we don't do a default arg and instead call it with that where we need to
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.
Agreed - proposed change is much better.
bae9ffb
to
7ef4d11
Compare
Codecov Report
|
7ef4d11
to
c0384ba
Compare
c0384ba
to
6140fae
Compare
@mitchellhamilton fixed a nit-pick about |
This fixes an issue with rehydrated tags always being appended - regardless of
prepend
option.It also makes sheet own "its" rehydrated styles - which seems like a good change, because without that
flush
didn't affect those.