mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
ignore: added debug logging for share data loading performance
This commit is contained in:
parent
5ffcde9dba
commit
013bf079cc
1 changed files with 4 additions and 1 deletions
|
|
@ -141,7 +141,10 @@ export default function () {
|
|||
const data = createAsync(
|
||||
async () => {
|
||||
if (!params.shareID) throw new Error("Missing shareID")
|
||||
return getData(params.shareID)
|
||||
const now = Date.now()
|
||||
const data = getData(params.shareID)
|
||||
console.log("getData", Date.now() - now)
|
||||
return data
|
||||
},
|
||||
{
|
||||
deferStream: true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue