-
Notifications
You must be signed in to change notification settings - Fork 54
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(promise): add SuspensePromise, useSuspensePromise, promiseOptions, PromiseCache, PromiseCacheProvider, usePromiseCache #1074
Conversation
🦋 Changeset detectedLatest commit: 39babc9 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@SEOKKAMONI is attempting to deploy a commit to the Toss Team on Vercel. A member of the Team first needs to authorize it. |
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.
I thought it would be better to review document additions in separate issues, so I did not handle them all at once. I plan to add the documents in a future issue.
import { type PropsWithChildren } from 'react' | ||
import { PromiseCacheContext } from './contexts' | ||
import type { PromiseCache } from './PromiseCache' | ||
|
||
type PromiseCacheProviderProps = PropsWithChildren<{ cache: PromiseCache }> | ||
|
||
/** | ||
* @experimental This is experimental feature. | ||
*/ | ||
export const PromiseCacheProvider = ({ cache, children }: PromiseCacheProviderProps) => ( | ||
<PromiseCacheContext.Provider value={cache}>{children}</PromiseCacheContext.Provider> | ||
) |
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.
Here is the implementation reflecting the review from #1066 (comment)
CodSpeed Performance ReportMerging #1074 will create unknown performance changesComparing Summary
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1074 +/- ##
==========================================
+ Coverage 84.23% 85.77% +1.54%
==========================================
Files 54 63 +9
Lines 552 654 +102
Branches 117 141 +24
==========================================
+ Hits 465 561 +96
- Misses 82 87 +5
- Partials 5 6 +1
|
Co-authored-by: Jonghyeon Ko <61593290+manudeli@users.noreply.github.com>
@SEOKKAMONI Could you resolve eslint error |
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/promise@0.1.0 ### Minor Changes - [#1074](#1074) [`32bd5ab`](32bd5ab) Thanks [@SEOKKAMONI](https://github.com/SEOKKAMONI)! - feat(promise): add SuspensePromise, useSuspensePromise, promiseOptions, PromiseCache, PromiseCacheProvider, usePromiseCache Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…s, PromiseCache, PromiseCacheProvider, usePromiseCache (#1074) related with #1076 close #1069 # Overview - add SuspensePromise, useSuspensePromise, promiseOptions, PromiseCache, PromiseCacheProvider, usePromiseCache <!-- 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: Jonghyeon Ko <jonghyeon@toss.im>
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/promise@0.1.0 ### Minor Changes - [#1074](#1074) [`32bd5ab`](32bd5ab) Thanks [@SEOKKAMONI](https://github.com/SEOKKAMONI)! - feat(promise): add SuspensePromise, useSuspensePromise, promiseOptions, PromiseCache, PromiseCacheProvider, usePromiseCache Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…s, PromiseCache, PromiseCacheProvider, usePromiseCache (#1074) related with #1076 close #1069 # Overview - add SuspensePromise, useSuspensePromise, promiseOptions, PromiseCache, PromiseCacheProvider, usePromiseCache <!-- 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. ---------
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/promise@0.1.0 ### Minor Changes - [#1074](#1074) [`32bd5ab`](32bd5ab) Thanks [@SEOKKAMONI](https://github.com/SEOKKAMONI)! - feat(promise): add SuspensePromise, useSuspensePromise, promiseOptions, PromiseCache, PromiseCacheProvider, usePromiseCache
…s, PromiseCache, PromiseCacheProvider, usePromiseCache (#1074) related with #1076 close #1069 # Overview - add SuspensePromise, useSuspensePromise, promiseOptions, PromiseCache, PromiseCacheProvider, usePromiseCache <!-- 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: Jonghyeon Ko <jonghyeon@toss.im>
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/promise@0.1.0 ### Minor Changes - [#1074](#1074) [`32bd5ab`](32bd5ab) Thanks [@SEOKKAMONI](https://github.com/SEOKKAMONI)! - feat(promise): add SuspensePromise, useSuspensePromise, promiseOptions, PromiseCache, PromiseCacheProvider, usePromiseCache
…s, PromiseCache, PromiseCacheProvider, usePromiseCache (#1074) related with #1076 close #1069 # Overview - add SuspensePromise, useSuspensePromise, promiseOptions, PromiseCache, PromiseCacheProvider, usePromiseCache <!-- 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: Jonghyeon Ko <jonghyeon@toss.im>
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/promise@0.1.0 ### Minor Changes - [#1074](#1074) [`32bd5ab`](32bd5ab) Thanks [@SEOKKAMONI](https://github.com/SEOKKAMONI)! - feat(promise): add SuspensePromise, useSuspensePromise, promiseOptions, PromiseCache, PromiseCacheProvider, usePromiseCache
related with #1076
close #1069
Overview
PR Checklist