diff --git a/packages/react-page-renderer/src/renderer/AbstractClientPageRenderer.ts b/packages/react-page-renderer/src/renderer/AbstractClientPageRenderer.ts index cb5daf2ac..c5cbbd0ef 100644 --- a/packages/react-page-renderer/src/renderer/AbstractClientPageRenderer.ts +++ b/packages/react-page-renderer/src/renderer/AbstractClientPageRenderer.ts @@ -200,25 +200,21 @@ export abstract class AbstractClientPageRenderer extends AbstractPageRenderer { protected _getHydrateCallback() { return () => - this._dispatcher.fire( - RendererEvents.MOUNTED, - { type: RendererTypes.HYDRATE }, - true - ); + this._dispatcher.fire(RendererEvents.MOUNTED, { + type: RendererTypes.HYDRATE, + }); } protected _getRenderCallback() { return () => - this._dispatcher.fire( - RendererEvents.MOUNTED, - { type: RendererTypes.RENDER }, - true - ); + this._dispatcher.fire(RendererEvents.MOUNTED, { + type: RendererTypes.RENDER, + }); } protected _getUpdateCallback(pageState: unknown) { return () => { - this._dispatcher.fire(RendererEvents.UPDATED, { pageState }, true); + this._dispatcher.fire(RendererEvents.UPDATED, { pageState }); }; } @@ -280,11 +276,9 @@ export abstract class AbstractClientPageRenderer extends AbstractPageRenderer { } protected _runUnmountCallback() { - this._dispatcher.fire( - RendererEvents.UNMOUNTED, - { type: RendererTypes.UNMOUNT }, - true - ); + this._dispatcher.fire(RendererEvents.UNMOUNTED, { + type: RendererTypes.UNMOUNT, + }); } /** @@ -388,11 +382,7 @@ export abstract class AbstractClientPageRenderer extends AbstractPageRenderer { }" was not found in the DOM. ` + `Maybe the DOM is not in the interactive mode yet.`; - this._dispatcher.fire( - RendererEvents.ERROR, - { message: errorMessage }, - true - ); + this._dispatcher.fire(RendererEvents.ERROR, { message: errorMessage }); return Promise.reject(new Error(errorMessage)); }