فهرست منبع

ignore: added debug logging for share data loading performance

Dax Raad 2 ماه پیش
والد
کامیت
013bf079cc
1فایلهای تغییر یافته به همراه4 افزوده شده و 1 حذف شده
  1. 4 1
      packages/enterprise/src/routes/share/[shareID].tsx

+ 4 - 1
packages/enterprise/src/routes/share/[shareID].tsx

@@ -141,7 +141,10 @@ export default function () {
   const data = createAsync(
   const data = createAsync(
     async () => {
     async () => {
       if (!params.shareID) throw new Error("Missing shareID")
       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,
       deferStream: true,