Skip to content

disableDynamicPageReload(): void

The disableDynamicPageReload method allows to disable Turbo's dynamic page reload. Find out more about the dynamic page reload here.

Returned value

A returned value has a type of void because this method does not return anything.

Example

In this example we make a PageManagerApi call to check if dynamic page reload is currently enabled. If it is then we will disable it.

    useStorefront(async (storefront) => {
        const pageManagerApi = storefront.getApiSync('PageManagerApi');

        if (pageManagerApi.isDynamicPageReloadEnabled()) {
            pageManagerApi.disableDynamicPageReload();
        }
    });

Page Manager API methods reference