René's URL Explorer Experiment


Title: feat: apply webpack HMR updates while a debug app runs by triniwiz · Pull Request #32 · NativeScript/windows · GitHub

Open Graph Title: feat: apply webpack HMR updates while a debug app runs by triniwiz · Pull Request #32 · NativeScript/windows

X Title: feat: apply webpack HMR updates while a debug app runs by triniwiz · Pull Request #32 · NativeScript/windows

Description: With webpack, ns run windows syncs the hot-update files into bin\app, but nothing tells the running app to apply them, so the CLI restarts the app on every change. On Android and iOS the runtime calls global.__onLiveSync() after a LiveSync, and webpack's HMR runtime hooks that to run its hot update. Changes template/framework/__PROJECT_NAME__/RuntimeHost.cs (Debug builds only): WatchLiveSync(dispatcherQueue) watches the app's LocalState for an ns-livesync marker. When the marker appears or changes, the host consumes it on the UI thread and runs __onLiveSync() through runtime_runscript. While it watches, the host writes ns-livesync-ready. The CLI only signals an app whose host wrote it, so a newer CLI with an older host still restarts as before. The ready marker is deleted at startup and on dispose. App.xaml.cs starts the watcher once the pump runs. The CLI side is NativeScript/nativescript-cli (against feat/windows). It writes the marker after syncing, and now restarts on a full sync, which is how the CLI recovers from a hot update that fails. Testing End to end on Windows 11 (Debug, x64): a TypeScript app on webpack 5.99.7, core and @nativescript/webpack built from feat/windows, this template, a current nativescript.dll and the CLI branch: Editing app.css: the CLI synced the hot-update files and logged "Refreshing application" with no restart. The app logged [HMR] success | Successfully applied update. with the same PID. Editing app.ts (not hot-acceptable): the app logged [HMR] failure | A module has not been accepted., and the CLI then restarted the app (new PID), as on Android and iOS. I haven't built the published @nativescript/windows-* packages from this template. The NativeScriptWindowsDemo and TestApp copies of the host are unchanged.

Open Graph Description: With webpack, ns run windows syncs the hot-update files into bin\app, but nothing tells the running app to apply them, so the CLI restarts the app on every change. On Android and iOS the runtime ca...

X Description: With webpack, ns run windows syncs the hot-update files into bin\app, but nothing tells the running app to apply them, so the CLI restarts the app on every change. On Android and iOS the runtime ca...

Opengraph URL: https://github.com/NativeScript/windows/pull/32

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:062407ed-3060-8310-c225-d4c5e5890359
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9BD4:28A483:CC5C92:10EEA9E:6B01CA5A
html-safe-nonce59b4fbb8a01852c9c0c197053925040cbfcd0ee9690be983443ee221b14bf696
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QkQ0OjI4QTQ4MzpDQzVDOTI6MTBFRUE5RTo2QjAxQ0E1QSIsInZpc2l0b3JfaWQiOiIzMDIxNTAxNzIwNjQwNDczNjkwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmaca6d939cba34377a65404ee57a8df53a9eecf0e637e0b92a18f8f1dad56e4c77a
hovercard-subject-tagpull_request:4963526360
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/NativeScript/windows/pull/32/files
twitter:imagehttps://avatars.githubusercontent.com/u/6695919?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/6695919?s=400&v=4
og:image:altWith webpack, ns run windows syncs the hot-update files into bin\app, but nothing tells the running app to apply them, so the CLI restarts the app on every change. On Android and iOS the runtime ca...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/NativeScript/windows git https://github.com/NativeScript/windows.git
octolytics-dimension-user_id7392261
octolytics-dimension-user_loginNativeScript
octolytics-dimension-repository_id373653886
octolytics-dimension-repository_nwoNativeScript/windows
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id373653886
octolytics-dimension-repository_network_root_nwoNativeScript/windows
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/NativeScript/windows/pull/32/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2Fwindows%2Fpull%2F32%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2Fwindows%2Fpull%2F32%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=NativeScript%2Fwindows
Reloadhttps://github.com/NativeScript/windows/pull/32/files
Reloadhttps://github.com/NativeScript/windows/pull/32/files
Reloadhttps://github.com/NativeScript/windows/pull/32/files
NativeScripthttps://github.com/NativeScript
windowshttps://github.com/NativeScript/windows
Codehttps://github.com/NativeScript/windows
Issueshttps://github.com/NativeScript/windows/issues
Pull requestshttps://github.com/NativeScript/windows/pulls
Actionshttps://github.com/NativeScript/windows/actions
Projectshttps://github.com/NativeScript/windows/projects
Security and qualityhttps://github.com/NativeScript/windows/security
Insightshttps://github.com/NativeScript/windows/insights
Sign up for GitHub https://github.com/signup?return_to=%2FNativeScript%2Fwindows%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FNativeScript%2Fwindows%2Fissues%2Fnew%2Fchoose
triniwizhttps://github.com/triniwiz
mainhttps://github.com/NativeScript/windows/tree/main
feat/webpack-hmr-livesynchttps://github.com/NativeScript/windows/tree/feat/webpack-hmr-livesync
Conversation 1 https://github.com/NativeScript/windows/pull/32
Commits 1 https://github.com/NativeScript/windows/pull/32/commits
Checks 0 https://github.com/NativeScript/windows/pull/32/checks
Files changed https://github.com/NativeScript/windows/pull/32/files
Please reload this pagehttps://github.com/NativeScript/windows/pull/32/files
feat: apply webpack HMR updates while a debug app runs https://github.com/NativeScript/windows/pull/32/files#top
Show all changes 1 commit https://github.com/NativeScript/windows/pull/32/files
7d49623 feat: apply webpack HMR updates while a debug app runs triniwiz Oct 22, 2026 https://github.com/NativeScript/windows/pull/32/commits/7d496233f139272d295a79a2bffcc5663c0f0364
Clear filters https://github.com/NativeScript/windows/pull/32/files
Please reload this pagehttps://github.com/NativeScript/windows/pull/32/files
Please reload this pagehttps://github.com/NativeScript/windows/pull/32/files
App.xaml.cs https://github.com/NativeScript/windows/pull/32/files#diff-ecd576eb8da54146867f2b4ad8907c28e185a5ca6cc11f7ac7be977f55ee1cf3
RuntimeHost.cs https://github.com/NativeScript/windows/pull/32/files#diff-1870ab551274bf8d12f9d1b71d1ea4683968ea4e44ba535280201bef33d166ee
template/framework/__PROJECT_NAME__/App.xaml.cshttps://github.com/NativeScript/windows/pull/32/files#diff-ecd576eb8da54146867f2b4ad8907c28e185a5ca6cc11f7ac7be977f55ee1cf3
View file https://github.com/NativeScript/windows/blob/7d496233f139272d295a79a2bffcc5663c0f0364/template/framework/__PROJECT_NAME__/App.xaml.cs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/NativeScript/windows/pull/32/{{ revealButtonHref }}
https://github.com/NativeScript/windows/pull/32/files#diff-ecd576eb8da54146867f2b4ad8907c28e185a5ca6cc11f7ac7be977f55ee1cf3
https://github.com/NativeScript/windows/pull/32/files#diff-ecd576eb8da54146867f2b4ad8907c28e185a5ca6cc11f7ac7be977f55ee1cf3
template/framework/__PROJECT_NAME__/RuntimeHost.cshttps://github.com/NativeScript/windows/pull/32/files#diff-1870ab551274bf8d12f9d1b71d1ea4683968ea4e44ba535280201bef33d166ee
View file https://github.com/NativeScript/windows/blob/7d496233f139272d295a79a2bffcc5663c0f0364/template/framework/__PROJECT_NAME__/RuntimeHost.cs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/NativeScript/windows/pull/32/{{ revealButtonHref }}
https://github.com/NativeScript/windows/pull/32/files#diff-1870ab551274bf8d12f9d1b71d1ea4683968ea4e44ba535280201bef33d166ee
https://github.com/NativeScript/windows/pull/32/files#diff-1870ab551274bf8d12f9d1b71d1ea4683968ea4e44ba535280201bef33d166ee
https://github.com/NativeScript/windows/pull/32/files#diff-1870ab551274bf8d12f9d1b71d1ea4683968ea4e44ba535280201bef33d166ee
https://github.com/NativeScript/windows/pull/32/files#diff-1870ab551274bf8d12f9d1b71d1ea4683968ea4e44ba535280201bef33d166ee
https://github.com/NativeScript/windows/pull/32/files#diff-1870ab551274bf8d12f9d1b71d1ea4683968ea4e44ba535280201bef33d166ee
https://github.com/NativeScript/windows/pull/32/files#diff-1870ab551274bf8d12f9d1b71d1ea4683968ea4e44ba535280201bef33d166ee
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.