enableDynamicPageReload(): void¶
The enableDynamicPageReload
method allows to enable 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 disabled. If it is then we will enable it.
useStorefront(async (storefront) => {
const pageManagerApi = storefront.getApiSync('PageManagerApi');
if (pageManagerApi.isDynamicPageReloadEnabled() == false) {
pageManagerApi.enableDynamicPageReload();
}
});