import renderRoot from 'shared/helpers/render-root';
import { TutorApp } from './src/models/app';

TutorApp.boot().then(async (app) => {
    const rootRenderer = await renderRoot({
        Component: TutorApp.rootComponent,
        props: { app },
    });
    if (module.hot) {
        module.hot.accept('./src/models/app', async () => {
            const NewApp = await import('./src/models/app');
            rootRenderer(NewApp.default.rootComponent);
        });
    }
});

@@ -137,29 +137,8 @@
 %0A   
- const rootRenderer =
  awa
@@ -232,225 +232,8 @@
 %7D);%0A
-    if (module.hot) %7B%0A        module.hot.accept('./src/models/app', async () =%3E %7B%0A            const NewApp = await import('./src/models/app');%0A            rootRenderer(NewApp.default.rootComponent);%0A        %7D);%0A    %7D%0A
 %7D);%0A

kill hot accepting