@tempots/dom

prepareSSR() function

Prepares for server-side rendering (SSR) by setting a timeout. The returned promise resolves when all the useSSRDone calls have been completed.

Signature:

prepareSSR: (timeoutSeconds?: number) => Promise<void>

Parameters

Parameter

Type

Description

timeoutSeconds

number

(Optional) The timeout duration in seconds (default: 30 seconds).

Returns: Promise

A promise that resolves when all useSSRDone calls have been completed.