Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dailydotdev/apps
/ withNoSSR
Function
withNoSSR
packages/shared/src/lib/withNoSSR.ts:4–7 ·
view source on GitHub ↗
(Component: ComponentType<T>)
Source
from the content-addressed store, hash-verified
2
import
type
{ ComponentType } from
'react'
;
3
4
export
const
withNoSSR = <T>(Component: ComponentType<T>): ComponentType<T> =>
5
dynamic<T>(() => Promise.resolve<ComponentType<T>>(Component), {
6
ssr: false,
7
});
Callers
1
HeaderLogo.tsx
File · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected