mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
console: fix download route async handling
This commit is contained in:
parent
9d4ed5b04a
commit
6f8746ab94
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue