Home > @uniformdev/context-next > enableNextSsr
enableNextSsr() function
Enables request-data tracking during server-side rendering passes, and sending that data back up to the client.
This function must be called in a custom Next _document's getInitialProps
function to work properly.
Signature:
Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead> <tbody><tr><td>
ctx
</td><td>
DocumentContext
</td><td>
</td></tr> <tr><td>
context
</td><td>
</td><td>
</td></tr> </tbody></table> Returns:
void