Răsfoiți Sursa

chore: fix useSSRContext casing in warning message

Evan You 5 ani în urmă
părinte
comite
310cb8cfab
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      packages/runtime-core/src/helpers/useSsrContext.ts

+ 2 - 2
packages/runtime-core/src/helpers/useSsrContext.ts

@@ -9,11 +9,11 @@ export const useSSRContext = <T = Record<string, any>>() => {
     if (!ctx) {
       warn(
         `Server rendering context not provided. Make sure to only call ` +
-          `useSsrContext() conditionally in the server build.`
+          `useSSRContext() conditionally in the server build.`
       )
     }
     return ctx
   } else if (__DEV__) {
-    warn(`useSsrContext() is not supported in the global build.`)
+    warn(`useSSRContext() is not supported in the global build.`)
   }
 }