mirror of
https://fastgit.cc/https://github.com/anomalyco/opencode
synced 2026-04-21 21:31:53 +08:00
console: fix download route async handling
This commit is contained in:
@@ -26,7 +26,9 @@ function CopyStatus() {
|
||||
}
|
||||
|
||||
export default function Download() {
|
||||
const release = createAsync(() => getLatestRelease())
|
||||
const release = createAsync(() => getLatestRelease(), {
|
||||
deferStream: true,
|
||||
})
|
||||
const download = () => {
|
||||
const version = release()
|
||||
if (!version) return null
|
||||
|
||||
Reference in New Issue
Block a user