Skip to content

Commit 310a353

Browse files
committed
refactor: stricter ssr check
1 parent d3c9417 commit 310a353

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/shared.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -280,10 +280,5 @@ export interface _ResolveRejectFn {
280280
* @internal
281281
*/
282282
export function isSSR(): boolean {
283-
return (
284-
!!inject(ssrContextKey, null) ||
285-
// in case the function is called outside of a composable
286-
// @ts-expect-error
287-
import.meta.env?.SSR
288-
)
283+
return !!inject(ssrContextKey, null)
289284
}

0 commit comments

Comments
 (0)