installPreloadErrorHandler()
Home > @gooddata/sdk-ui-pluggable-host > installPreloadErrorHandler
installPreloadErrorHandler() function
This API is provided as an alpha preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Installs a window listener for vite:preloadError. When fired (e.g. a chunk has been removed by a redeploy), the page is hard-reloaded once to pick up new chunk hashes from a fresh index.html.
Idempotent: calling more than once registers the listener only once.
Signature:
export declare function installPreloadErrorHandler(): void;
Returns:
void