silverwolf-x's picture
download
raw
532 Bytes
// A fulfilled thenable that React can unwrap synchronously via `use()` without
// ever suspending. Reusing a single instance avoids allocating on every call.
const resolvedIOPromise: Promise<void> = Promise.resolve(undefined)
;(resolvedIOPromise as any).status = 'fulfilled'
;(resolvedIOPromise as any).value = undefined
/**
* Browser implementation of unstable_io(). On the client there is no
* prerender context so we always resolve immediately.
*/
export function unstable_io(): Promise<void> {
return resolvedIOPromise
}

Xet Storage Details

Size:
532 Bytes
·
Xet hash:
91ecc817f5861ecfd1f968e01b7a9c747dab2f6eab9aaedbe22b88e4bd3c9101

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.