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

feat(react): improve ClientOnly by useSyncExternalStore #1105

Merged
merged 4 commits into from
Jul 19, 2024

Conversation

manudeli
Copy link
Member

@manudeli manudeli commented Jul 18, 2024

Idead by @TkDodo 🙇

close #528

Overview

PR Checklist

  • I did below actions if need
  1. I read the Contributing Guide
  2. I added documents and tests.

@manudeli manudeli self-assigned this Jul 18, 2024
Copy link

changeset-bot bot commented Jul 18, 2024

🦋 Changeset detected

Latest commit: 33e39b9

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 9 packages
Name Type
@suspensive/react Minor
@suspensive/cache Patch
@suspensive/react-await Patch
@suspensive/react-query-4 Minor
@suspensive/react-query-5 Minor
@suspensive/react-query Minor
@suspensive/utils Minor
@suspensive/jotai Patch
@suspensive/react-image Patch

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

Copy link

vercel bot commented Jul 18, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
suspensive.org ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 19, 2024 7:44am
v1.suspensive.org ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 19, 2024 7:44am
visualization.suspensive.org ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 19, 2024 7:44am

Co-authored-by: Dominik Dorfmeister <1021430+TkDodo@users.noreply.github.com>
Co-authored-by: SeongMin Kim <86355699+Collection50@users.noreply.github.com>
Co-authored-by: GwanSik Kim <39869096+gwansikk@users.noreply.github.com>
@manudeli manudeli force-pushed the feat/improve-client-only branch from ecfd946 to a041598 Compare July 18, 2024 18:09
Copy link

codspeed-hq bot commented Jul 18, 2024

CodSpeed Performance Report

Merging #1105 will create unknown performance changes

Comparing feat/improve-client-only (33e39b9) with main (00a9233)

Summary

⚠️ No benchmarks were detected in both the base of the PR and the PR.

Copy link
Member Author

@manudeli manudeli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@TkDodo @Collection50 @gwansikk Could you review this please?

@manudeli manudeli marked this pull request as ready for review July 18, 2024 18:36
Copy link
Collaborator

@gwansikk gwansikk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! Thanks to @TkDodo for the great idea.

Copy link
Contributor

@Collection50 Collection50 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool Code !!! 👍

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.08%. Comparing base (00a9233) to head (33e39b9).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1105      +/-   ##
==========================================
- Coverage   82.10%   82.08%   -0.03%     
==========================================
  Files          66       66              
  Lines         721      720       -1     
  Branches      149      148       -1     
==========================================
- Hits          592      591       -1     
  Misses        120      120              
  Partials        9        9              
Components Coverage Δ
@suspensive/utils 47.16% <ø> (ø)
@suspensive/react 96.88% <100.00%> (-0.02%) ⬇️
@suspensive/react-query 71.96% <ø> (ø)
@suspensive/react-query-4 0.00% <ø> (ø)
@suspensive/react-query-5 0.00% <ø> (ø)
@suspensive/jotai 0.00% <ø> (ø)
@suspensive/cache 98.16% <ø> (ø)
@suspensive/react-await 100.00% <ø> (ø)
@suspensive/react-image 80.39% <ø> (ø)

@manudeli manudeli merged commit f9fb719 into main Jul 19, 2024
16 checks passed
@manudeli manudeli deleted the feat/improve-client-only branch July 19, 2024 07:46
manudeli pushed a commit that referenced this pull request Jul 19, 2024
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @suspensive/react@2.9.0

### Minor Changes

- [#1105](#1105)
[`f9fb719`](f9fb719)
Thanks [@manudeli](https://github.com/manudeli)! - feat(react): improve
ClientOnly by useSyncExternalStore

### Patch Changes

-   Updated dependencies \[]:
    -   @suspensive/utils@2.9.0

## @suspensive/cache@0.2.2

### Patch Changes

-   Updated dependencies \[]:
    -   @suspensive/utils@2.9.0

## @suspensive/jotai@0.0.3

### Patch Changes

-   Updated dependencies \[]:
    -   @suspensive/utils@2.9.0

## @suspensive/react-await@0.2.2

### Patch Changes

-   Updated dependencies \[]:
    -   @suspensive/utils@2.9.0

## @suspensive/react-image@0.0.17

### Patch Changes

-   Updated dependencies \[]:
    -   @suspensive/utils@2.9.0

## @suspensive/react-query@2.9.0

### Patch Changes

- Updated dependencies
\[[`f9fb719`](f9fb719)]:
    -   @suspensive/react@2.9.0
    -   @suspensive/react-query-4@2.9.0
    -   @suspensive/react-query-5@2.9.0
    -   @suspensive/utils@2.9.0

## @suspensive/react-query-4@2.9.0

### Patch Changes

- Updated dependencies
\[[`f9fb719`](f9fb719)]:
    -   @suspensive/react@2.9.0
    -   @suspensive/utils@2.9.0

## @suspensive/react-query-5@2.9.0

### Patch Changes

- Updated dependencies
\[[`f9fb719`](f9fb719)]:
    -   @suspensive/react@2.9.0
    -   @suspensive/utils@2.9.0

## @suspensive/utils@2.9.0

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
manudeli added a commit that referenced this pull request Aug 3, 2024
Idead by @TkDodo 🙇

close #528 

# Overview

<!--
    A clear and concise description of what this pr is about.
 -->

## PR Checklist

- [x] I did below actions if need

1. I read the [Contributing
Guide](https://github.com/toss/suspensive/blob/main/CONTRIBUTING.md)
2. I added documents and tests.

---------

Co-authored-by: Dominik Dorfmeister <1021430+TkDodo@users.noreply.github.com>
Co-authored-by: SeongMin Kim <86355699+Collection50@users.noreply.github.com>
Co-authored-by: GwanSik Kim <39869096+gwansikk@users.noreply.github.com>
manudeli added a commit that referenced this pull request Aug 3, 2024
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @suspensive/react@2.9.0

### Minor Changes

- [#1105](#1105)
[`f9fb719`](f9fb719)
Thanks [@manudeli](https://github.com/manudeli)! - feat(react): improve
ClientOnly by useSyncExternalStore

### Patch Changes

-   Updated dependencies \[]:
    -   @suspensive/utils@2.9.0

## @suspensive/cache@0.2.2

### Patch Changes

-   Updated dependencies \[]:
    -   @suspensive/utils@2.9.0

## @suspensive/jotai@0.0.3

### Patch Changes

-   Updated dependencies \[]:
    -   @suspensive/utils@2.9.0

## @suspensive/react-await@0.2.2

### Patch Changes

-   Updated dependencies \[]:
    -   @suspensive/utils@2.9.0

## @suspensive/react-image@0.0.17

### Patch Changes

-   Updated dependencies \[]:
    -   @suspensive/utils@2.9.0

## @suspensive/react-query@2.9.0

### Patch Changes

- Updated dependencies
\[[`f9fb719`](f9fb719)]:
    -   @suspensive/react@2.9.0
    -   @suspensive/react-query-4@2.9.0
    -   @suspensive/react-query-5@2.9.0
    -   @suspensive/utils@2.9.0

## @suspensive/react-query-4@2.9.0

### Patch Changes

- Updated dependencies
\[[`f9fb719`](f9fb719)]:
    -   @suspensive/react@2.9.0
    -   @suspensive/utils@2.9.0

## @suspensive/react-query-5@2.9.0

### Patch Changes

- Updated dependencies
\[[`f9fb719`](f9fb719)]:
    -   @suspensive/react@2.9.0
    -   @suspensive/utils@2.9.0

## @suspensive/utils@2.9.0

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
manudeli added a commit that referenced this pull request Aug 3, 2024
Idead by @TkDodo 🙇

close #528 

# Overview

<!--
    A clear and concise description of what this pr is about.
 -->

## PR Checklist

- [x] I did below actions if need

1. I read the [Contributing
Guide](https://github.com/toss/suspensive/blob/main/CONTRIBUTING.md)
2. I added documents and tests.

---------
manudeli added a commit that referenced this pull request Aug 3, 2024
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @suspensive/react@2.9.0

### Minor Changes

- [#1105](#1105)
[`f9fb719`](f9fb719)
Thanks [@manudeli](https://github.com/manudeli)! - feat(react): improve
ClientOnly by useSyncExternalStore

### Patch Changes

-   Updated dependencies \[]:
    -   @suspensive/utils@2.9.0

## @suspensive/cache@0.2.2

### Patch Changes

-   Updated dependencies \[]:
    -   @suspensive/utils@2.9.0

## @suspensive/jotai@0.0.3

### Patch Changes

-   Updated dependencies \[]:
    -   @suspensive/utils@2.9.0

## @suspensive/react-await@0.2.2

### Patch Changes

-   Updated dependencies \[]:
    -   @suspensive/utils@2.9.0

## @suspensive/react-image@0.0.17

### Patch Changes

-   Updated dependencies \[]:
    -   @suspensive/utils@2.9.0

## @suspensive/react-query@2.9.0

### Patch Changes

- Updated dependencies
\[[`f9fb719`](f9fb719)]:
    -   @suspensive/react@2.9.0
    -   @suspensive/react-query-4@2.9.0
    -   @suspensive/react-query-5@2.9.0
    -   @suspensive/utils@2.9.0

## @suspensive/react-query-4@2.9.0

### Patch Changes

- Updated dependencies
\[[`f9fb719`](f9fb719)]:
    -   @suspensive/react@2.9.0
    -   @suspensive/utils@2.9.0

## @suspensive/react-query-5@2.9.0

### Patch Changes

- Updated dependencies
\[[`f9fb719`](f9fb719)]:
    -   @suspensive/react@2.9.0
    -   @suspensive/utils@2.9.0

## @suspensive/utils@2.9.0
manudeli added a commit that referenced this pull request Aug 3, 2024
Idead by @TkDodo 🙇

close #528 

# Overview

<!--
    A clear and concise description of what this pr is about.
 -->

## PR Checklist

- [x] I did below actions if need

1. I read the [Contributing
Guide](https://github.com/toss/suspensive/blob/main/CONTRIBUTING.md)
2. I added documents and tests.

---------

Co-authored-by: Dominik Dorfmeister <1021430+TkDodo@users.noreply.github.com>
Co-authored-by: SeongMin Kim <86355699+Collection50@users.noreply.github.com>
Co-authored-by: GwanSik Kim <39869096+gwansikk@users.noreply.github.com>
manudeli added a commit that referenced this pull request Aug 3, 2024
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @suspensive/react@2.9.0

### Minor Changes

- [#1105](#1105)
[`f9fb719`](f9fb719)
Thanks [@manudeli](https://github.com/manudeli)! - feat(react): improve
ClientOnly by useSyncExternalStore

### Patch Changes

-   Updated dependencies \[]:
    -   @suspensive/utils@2.9.0

## @suspensive/cache@0.2.2

### Patch Changes

-   Updated dependencies \[]:
    -   @suspensive/utils@2.9.0

## @suspensive/jotai@0.0.3

### Patch Changes

-   Updated dependencies \[]:
    -   @suspensive/utils@2.9.0

## @suspensive/react-await@0.2.2

### Patch Changes

-   Updated dependencies \[]:
    -   @suspensive/utils@2.9.0

## @suspensive/react-image@0.0.17

### Patch Changes

-   Updated dependencies \[]:
    -   @suspensive/utils@2.9.0

## @suspensive/react-query@2.9.0

### Patch Changes

- Updated dependencies
\[[`f9fb719`](f9fb719)]:
    -   @suspensive/react@2.9.0
    -   @suspensive/react-query-4@2.9.0
    -   @suspensive/react-query-5@2.9.0
    -   @suspensive/utils@2.9.0

## @suspensive/react-query-4@2.9.0

### Patch Changes

- Updated dependencies
\[[`f9fb719`](f9fb719)]:
    -   @suspensive/react@2.9.0
    -   @suspensive/utils@2.9.0

## @suspensive/react-query-5@2.9.0

### Patch Changes

- Updated dependencies
\[[`f9fb719`](f9fb719)]:
    -   @suspensive/react@2.9.0
    -   @suspensive/utils@2.9.0

## @suspensive/utils@2.9.0
manudeli added a commit that referenced this pull request Aug 3, 2024
Idead by @TkDodo 🙇

close #528 

# Overview

<!--
    A clear and concise description of what this pr is about.
 -->

## PR Checklist

- [x] I did below actions if need

1. I read the [Contributing
Guide](https://github.com/toss/suspensive/blob/main/CONTRIBUTING.md)
2. I added documents and tests.

---------

Co-authored-by: Dominik Dorfmeister <1021430+TkDodo@users.noreply.github.com>
Co-authored-by: SeongMin Kim <86355699+Collection50@users.noreply.github.com>
Co-authored-by: GwanSik Kim <39869096+gwansikk@users.noreply.github.com>
manudeli added a commit that referenced this pull request Aug 3, 2024
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @suspensive/react@2.9.0

### Minor Changes

- [#1105](#1105)
[`f9fb719`](f9fb719)
Thanks [@manudeli](https://github.com/manudeli)! - feat(react): improve
ClientOnly by useSyncExternalStore

### Patch Changes

-   Updated dependencies \[]:
    -   @suspensive/utils@2.9.0

## @suspensive/cache@0.2.2

### Patch Changes

-   Updated dependencies \[]:
    -   @suspensive/utils@2.9.0

## @suspensive/jotai@0.0.3

### Patch Changes

-   Updated dependencies \[]:
    -   @suspensive/utils@2.9.0

## @suspensive/react-await@0.2.2

### Patch Changes

-   Updated dependencies \[]:
    -   @suspensive/utils@2.9.0

## @suspensive/react-image@0.0.17

### Patch Changes

-   Updated dependencies \[]:
    -   @suspensive/utils@2.9.0

## @suspensive/react-query@2.9.0

### Patch Changes

- Updated dependencies
\[[`f9fb719`](f9fb719)]:
    -   @suspensive/react@2.9.0
    -   @suspensive/react-query-4@2.9.0
    -   @suspensive/react-query-5@2.9.0
    -   @suspensive/utils@2.9.0

## @suspensive/react-query-4@2.9.0

### Patch Changes

- Updated dependencies
\[[`f9fb719`](f9fb719)]:
    -   @suspensive/react@2.9.0
    -   @suspensive/utils@2.9.0

## @suspensive/react-query-5@2.9.0

### Patch Changes

- Updated dependencies
\[[`f9fb719`](f9fb719)]:
    -   @suspensive/react@2.9.0
    -   @suspensive/utils@2.9.0

## @suspensive/utils@2.9.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature]: Determine what is clientOnly prop of <Suspense/>, <ClientOnly/>.
4 participants