Skip to content
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

Export rehydrate from StyleSheet #4328

Merged

Conversation

hamidrezahanafi
Copy link
Contributor

@hamidrezahanafi hamidrezahanafi commented Jun 13, 2024

This will help rehydrate sheet on NextJS/React 18 streaming when initial rehydration is already done and we receive a new chunk from NextJS useServerInsertedHTML afterwards.
With this change we can manually get the stylesheet and call rehydration.

@hamidrezahanafi
Copy link
Contributor Author

@quantizor Do you have any objection about exporting this?

@quantizor
Copy link
Contributor

@quantizor Do you have any objection about exporting this?

No should be fine 👍 might want to document it in the website repo

@quantizor quantizor merged commit 4a4b0da into styled-components:main Jul 16, 2024
5 checks passed
renovate bot added a commit to camunda/camunda that referenced this pull request Jul 17, 2024
…8.5) (#20326)

[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [styled-components](https://styled-components.com)
([source](https://togithub.com/styled-components/styled-components)) |
[`6.1.11` ->
`6.1.12`](https://renovatebot.com/diffs/npm/styled-components/6.1.11/6.1.12)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/styled-components/6.1.12?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/styled-components/6.1.12?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/styled-components/6.1.11/6.1.12?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/styled-components/6.1.11/6.1.12?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>styled-components/styled-components
(styled-components)</summary>

###
[`v6.1.12`](https://togithub.com/styled-components/styled-components/releases/tag/v6.1.12)

[Compare
Source](https://togithub.com/styled-components/styled-components/compare/v6.1.11...v6.1.12)

#### What's Changed

- Export rehydrate from StyleSheet by
[@&#8203;hamidrezahanafi](https://togithub.com/hamidrezahanafi) in
[styled-components/styled-components#4328
- Prevent ServerStyleSheet generating empty style tags/elements by
[@&#8203;hamidrezahanafi](https://togithub.com/hamidrezahanafi) in
[styled-components/styled-components#4327

#### New Contributors

- [@&#8203;hamidrezahanafi](https://togithub.com/hamidrezahanafi) made
their first contribution in
[styled-components/styled-components#4328

**Full Changelog**:
styled-components/styled-components@v6.1.11...v6.1.12

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/camunda/camunda).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MzEuNCIsInVwZGF0ZWRJblZlciI6IjM3LjQzMS40IiwidGFyZ2V0QnJhbmNoIjoic3RhYmxlL29wZXJhdGUtOC41IiwibGFiZWxzIjpbImF1dG9tZXJnZSJdfQ==-->
kodiakhq bot pushed a commit to X-oss-byte/Nextjs that referenced this pull request Jul 19, 2024
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [styled-components](https://styled-components.com) ([source](https://togithub.com/styled-components/styled-components)) | [`6.1.11` -> `6.1.12`](https://renovatebot.com/diffs/npm/styled-components/6.1.8/6.1.12) | [![age](https://developer.mend.io/api/mc/badges/age/npm/styled-components/6.1.12?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/styled-components/6.1.12?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/styled-components/6.1.8/6.1.12?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/styled-components/6.1.8/6.1.12?slim=true)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>styled-components/styled-components (styled-components)</summary>

### [`v6.1.12`](https://togithub.com/styled-components/styled-components/releases/tag/v6.1.12)

[Compare Source](https://togithub.com/styled-components/styled-components/compare/v6.1.11...v6.1.12)

#### What's Changed

-   Export rehydrate from StyleSheet by [@&#8203;hamidrezahanafi](https://togithub.com/hamidrezahanafi) in [styled-components/styled-components#4328
-   Prevent ServerStyleSheet generating empty style tags/elements by [@&#8203;hamidrezahanafi](https://togithub.com/hamidrezahanafi) in [styled-components/styled-components#4327

#### New Contributors

-   [@&#8203;hamidrezahanafi](https://togithub.com/hamidrezahanafi) made their first contribution in [styled-components/styled-components#4328

**Full Changelog**: styled-components/styled-components@v6.1.11...v6.1.12

### [`v6.1.11`](https://togithub.com/styled-components/styled-components/compare/v6.1.10...v6.1.11)

[Compare Source](https://togithub.com/styled-components/styled-components/compare/v6.1.10...v6.1.11)

### [`v6.1.10`](https://togithub.com/styled-components/styled-components/compare/v6.1.9...cda9ccbfeb8e9e8962f38b486b4291c3847668d9)

[Compare Source](https://togithub.com/styled-components/styled-components/compare/v6.1.9...v6.1.10)

### [`v6.1.9`](https://togithub.com/styled-components/styled-components/releases/tag/v6.1.9)

[Compare Source](https://togithub.com/styled-components/styled-components/compare/v6.1.8...v6.1.9)

#### What's Changed

-   fix: improve types for .attrs() by [@&#8203;uhyo](https://togithub.com/uhyo) in [styled-components/styled-components#4288
-   fix(types): allow using a styled component as a key inside object styles in the web runtime by [@&#8203;iiroj](https://togithub.com/iiroj) in [styled-components/styled-components#4249
-   Upgrading babel dependencies to latest to fix CVE-2023-45133 by [@&#8203;JesseObrien](https://togithub.com/JesseObrien) in [styled-components/styled-components#4214

#### New Contributors

-   [@&#8203;uhyo](https://togithub.com/uhyo) made their first contribution in [styled-components/styled-components#4288
-   [@&#8203;iiroj](https://togithub.com/iiroj) made their first contribution in [styled-components/styled-components#4249
-   [@&#8203;JesseObrien](https://togithub.com/JesseObrien) made their first contribution in [styled-components/styled-components#4214

**Full Changelog**: styled-components/styled-components@v6.1.8...v6.1.9

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/X-oss-byte/Nextjs).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants