chore: fix useSSRContext casing in warning message

This commit is contained in:
Evan You 2021-01-18 14:51:41 -05:00
parent 4fecb27f86
commit 310cb8cfab

View File

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