Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
dai-shi committed Jun 18, 2023
1 parent 546988e commit 746b463
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vanilla/utils/unwrap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export function unwrap<Value, PendingValue>(
export function unwrap<Value, PendingValue>(
anAtom: Atom<Value>,
fallback: (prev?: Awaited<Value>) => PendingValue = defaultFallback as any
): Atom<Awaited<Value> | PendingValue> {
) {
return memo2(
() => {
type PromiseAndValue = { readonly p?: Promise<Value> } & (
Expand Down

0 comments on commit 746b463

Please sign in to comment.