René's URL Explorer Experiment


Title: App is changing from Light to Dark Theme after Webpack HMR · Issue #289 · NativeScript/theme · GitHub

Open Graph Title: App is changing from Light to Dark Theme after Webpack HMR · Issue #289 · NativeScript/theme

X Title: App is changing from Light to Dark Theme after Webpack HMR · Issue #289 · NativeScript/theme

Description: Environment Describe the bug I am trying to ensure the app remains in light mode. When I am debugging I set my phone settings to enable dark mode. I then debug the app and initially it appears in light mode however when webpack reloads o...

Open Graph Description: Environment Describe the bug I am trying to ensure the app remains in light mode. When I am debugging I set my phone settings to enable dark mode. I then debug the app and initially it appears in l...

X Description: Environment Describe the bug I am trying to ensure the app remains in light mode. When I am debugging I set my phone settings to enable dark mode. I then debug the app and initially it appears in l...

Opengraph URL: https://github.com/NativeScript/theme/issues/289

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"App is changing from Light to Dark Theme after Webpack HMR","articleBody":"**Environment**\r\n![image](https://user-images.githubusercontent.com/3893234/108222558-e6bfbd00-7106-11eb-98b9-3e26114f960f.png)\r\n\r\n**Describe the bug**\r\nI am trying to ensure the app remains in light mode. When I am debugging I set my phone settings to enable dark mode. I then debug the app and initially it appears in light mode however when webpack reloads on a change during development, it then appears to apply the dark theme.\r\n\r\n**To Reproduce**\r\n1. Turn dark mode on in the phone settings\r\n2. `ns debug android` on my connected Pixel 5 (Android 11)\r\n3. Change text in a component to trigger HMR\r\n4. App reloads and appears in the dark theme\r\n\r\n![image](https://user-images.githubusercontent.com/3893234/108224165-9ba6a980-7108-11eb-900d-778a5e8887e4.png)\r\n\r\n**Expected behavior**\r\nDark mode should remain disabled and the ns-dark theme should not apply.\r\n\r\n**Additional context**\r\nI have tried the following to ensure dark mode does not apply, none prevent the app from changing from light to dark on HMR.\r\n\r\n1. Setting `\u003citem name=\"android:forceDarkAllowed\"\u003efalse\u003c/item`\u003e in `styles.xml (values-v29)`\r\n2. Annotating class=\"ns-light\" on `\u003cpage-router-outlet\u003e`\r\n3. Setting `Theme.setMode(Theme.Light);` manually on `ngOnInit` in the app component and main.ts\r\n4. Adding the following snipplet to force it to disable night mode in main.ts\r\n```\r\nif (android) {\r\n    on(launchEvent, (args: ApplicationEventData) =\u003e {\r\n        androidx.appcompat.app.AppCompatDelegate.setDefaultNightMode(androidx.appcompat.app.AppCompatDelegate.MODE_NIGHT_NO);\r\n    });\r\n}\r\n```\r\n","author":{"url":"https://github.com/Tyler-V","@type":"Person","name":"Tyler-V"},"datePublished":"2021-02-17T15:10:36.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":16},"url":"https://github.com/289/theme/issues/289"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:ca0fdc25-3261-ea51-c3c0-60d825d3820a
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8CEC:26BD66:21724:300C1:6A61F685
html-safe-nonce9e85a4c01424fd390b7e2579ac4ae922c847d7488436b3373b803ff51723f01b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4Q0VDOjI2QkQ2NjoyMTcyNDozMDBDMTo2QTYxRjY4NSIsInZpc2l0b3JfaWQiOiI4MDkwNDQzMzY2Mjc3NDQ1MjUzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac4f236243bca0228741bdb5331e33392b9d2f32b1b38dd5d49755a91e3d266182
hovercard-subject-tagissue:810269963
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/NativeScript/theme/289/issue_layout
twitter:imagehttps://opengraph.githubassets.com/94a618eca23d836bedc19ee35d7b677ab1ac3c09c424e022e8d49ea64441acae/NativeScript/theme/issues/289
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/94a618eca23d836bedc19ee35d7b677ab1ac3c09c424e022e8d49ea64441acae/NativeScript/theme/issues/289
og:image:altEnvironment Describe the bug I am trying to ensure the app remains in light mode. When I am debugging I set my phone settings to enable dark mode. I then debug the app and initially it appears in l...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameTyler-V
hostnamegithub.com
expected-hostnamegithub.com
Noned88d9dd41cd32712dc23ff01ba406271c88c4858198430c255d591be42a1166f
turbo-cache-controlno-preview
go-importgithub.com/NativeScript/theme git https://github.com/NativeScript/theme.git
octolytics-dimension-user_id7392261
octolytics-dimension-user_loginNativeScript
octolytics-dimension-repository_id64524068
octolytics-dimension-repository_nwoNativeScript/theme
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id64524068
octolytics-dimension-repository_network_root_nwoNativeScript/theme
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasea7f024eda6b8ce06d29c9276168423bfe05bafae
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/NativeScript/theme/issues/289#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2Ftheme%2Fissues%2F289
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2Ftheme%2Fissues%2F289
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=NativeScript%2Ftheme
Reloadhttps://github.com/NativeScript/theme/issues/289
Reloadhttps://github.com/NativeScript/theme/issues/289
Reloadhttps://github.com/NativeScript/theme/issues/289
Please reload this pagehttps://github.com/NativeScript/theme/issues/289
NativeScript https://github.com/NativeScript
themehttps://github.com/NativeScript/theme
Please reload this pagehttps://github.com/NativeScript/theme/issues/289
Notifications https://github.com/login?return_to=%2FNativeScript%2Ftheme
Fork 44 https://github.com/login?return_to=%2FNativeScript%2Ftheme
Star 129 https://github.com/login?return_to=%2FNativeScript%2Ftheme
Code https://github.com/NativeScript/theme
Issues 40 https://github.com/NativeScript/theme/issues
Pull requests 0 https://github.com/NativeScript/theme/pulls
Actions https://github.com/NativeScript/theme/actions
Projects https://github.com/NativeScript/theme/projects
Security and quality 0 https://github.com/NativeScript/theme/security
Insights https://github.com/NativeScript/theme/pulse
Code https://github.com/NativeScript/theme
Issues https://github.com/NativeScript/theme/issues
Pull requests https://github.com/NativeScript/theme/pulls
Actions https://github.com/NativeScript/theme/actions
Projects https://github.com/NativeScript/theme/projects
Security and quality https://github.com/NativeScript/theme/security
Insights https://github.com/NativeScript/theme/pulse
App is changing from Light to Dark Theme after Webpack HMRhttps://github.com/NativeScript/theme/issues/289#top
https://github.com/Tyler-V
Tyler-Vhttps://github.com/Tyler-V
on Feb 17, 2021https://github.com/NativeScript/theme/issues/289#issue-810269963
https://user-images.githubusercontent.com/3893234/108222558-e6bfbd00-7106-11eb-98b9-3e26114f960f.png
https://user-images.githubusercontent.com/3893234/108224165-9ba6a980-7108-11eb-900d-778a5e8887e4.png
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.