useWasSSR
Indicates whether the component was SSR'ed or not.
The useWasSSR
hook is helpful when you want to know whether the component was server-side rendered (SSR) or not.
useWasSSR
SSR'ed
Client Only
Usage
Import the hook from @abhushanaj/react-hooks
and use in required component.
API Reference
Return Value
Parameter | Type | Description | Default |
---|---|---|---|
wasSSR | boolean | Whether or not the component was server rendered. | N/A |