Skip to content

Pass the HMR option to the hooks and preview URL #3907

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 18, 2018

Conversation

DimitarTachev
Copy link
Contributor

PR Checklist

related to #3813

Copy link
Contributor

@Fatme Fatme left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

});

await this.$playgroundQrCodeGenerator.generateQrCodeForCurrentApp();
await this.$playgroundQrCodeGenerator.generateQrCodeForCurrentApp({ useHmr: this.$options.hmr });
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can unify useHmr option name with useHotModuleReload

await this.$playgroundQrCodeGenerator.generateQrCodeForCurrentApp({ useHotModuleReload: this.$options.hmr })

@@ -10,7 +10,7 @@ declare global {
interface IPreviewAppLiveSyncData extends IProjectDir, IAppFilesUpdaterOptionsComposition, IEnvOptions { }

interface IPreviewSdkService {
qrCodeUrl: string;
getQrCodeUrl(options: { useHmr: boolean }): string;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can use IHasUseHotModuleReloadOption interface here

getQrCodeUrl(options: IHasUseHotModuleReloadOption): string;

@@ -255,7 +268,7 @@ function execute(options: {
});
}

describe("previewAppLiveSyncService", () => {
describe.only("previewAppLiveSyncService", () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this .only()

@DimitarTachev DimitarTachev force-pushed the tachev/preview-hmr branch 5 times, most recently from 849fa5f to d5cb873 Compare September 18, 2018 14:34
Copy link
Contributor

@Fatme Fatme left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

after green build!

@DimitarTachev DimitarTachev merged commit 2abae5f into master Sep 18, 2018
@DimitarTachev DimitarTachev deleted the tachev/preview-hmr branch September 18, 2018 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants