René's URL Explorer Experiment


Title: fix(ios): preserve lazy controller loading during layout invalidation by rafaelaugustos · Pull Request #11587 · NativeScript/NativeScript · GitHub

Open Graph Title: fix(ios): preserve lazy controller loading during layout invalidation by rafaelaugustos · Pull Request #11587 · NativeScript/NativeScript

X Title: fix(ios): preserve lazy controller loading during layout invalidation by rafaelaugustos · Pull Request #11587 · NativeScript/NativeScript

Description: PR Checklist The PR title follows the contribution guidelines. There is an issue for this bug: #11586. CLA signing previously declared by this contributor in #11552 and #11558. All reported CI checks pass; local and native validation details are below. Tests for the changes are included. What is the current behavior? When a Frame is attached below a direction-bearing root before Application.run(), inherited CSS direction calls requestLayout(). Reading viewController.view there eagerly loads the navigation controller before UIApplicationMain; on iOS 18.6 the resulting app terminates on TextField focus with the UIKit gesture-graph targetNode assertion. What is the new behavior? Use viewIfLoaded when invalidating the controller view. Layout flags, ancestor propagation and invalidation of already loaded native views remain intact. Android already invalidates only an existing native view; no public API or declaration changes are needed. Fixes #11586. Validation New unloaded-controller regression fails on the original implementation; all 7 requestLayout tests pass with the fix. Full npx nx run core:test --skip-nx-cache: 568 passed, 1 skipped, 44 files passed. Core 9.1.3 fixture with this exact block change: prebuilt inherited LTR and explicit pre-startup requestLayout() pass keyboard editing and cancelled/committed native Back on iPhone/iPad simulators running 18.6. NativeScript-Vue 3.1.2 only: direction/no-direction controls pass on iOS 18.6. Published vue-router-ns rc.3: inherited LTR and tabs controls pass on iOS 18.6 and 26.0. Explicitly forcing controller.view before startup still crashes with the patch: the negative control isolates early view loading, without CSS direction. Added two real-native assertions in apps/automated; that complete app suite was not run. Interaction coverage comes from the external Core/Vue/router fixture and XCTest runner linked below. Physical iPhone unavailable during this pass; dynamic RTL and arbitrary navigation hosts were not certified. Reproduction, reversible pinned-dependency patch, XCTest sources and results: rafaelaugustos/vue-router-ns#160 (companion reproduction and evidence PR). Video Actual iOS 18.6 simulator recording using the published router with only this Core correction: inherited LTR, tabs control, tabs with inherited LTR. Each flow types into a TextField, reverses native Back while preserving the draft, then completes Back. core-lazy-controller-navigation.mp4

Open Graph Description: PR Checklist The PR title follows the contribution guidelines. There is an issue for this bug: #11586. CLA signing previously declared by this contributor in #11552 and #11558. All reported CI...

X Description: PR Checklist The PR title follows the contribution guidelines. There is an issue for this bug: #11586. CLA signing previously declared by this contributor in #11552 and #11558. All reported CI...

Opengraph URL: https://github.com/NativeScript/NativeScript/pull/11587

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:e4f1d70c-e42c-8f53-48b7-a347eabdeea8
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idED70:2D40DE:B77E57:E89FA9:6B013342
html-safe-nonce0fd6489e21f6ea36487de70e5004e1e2e4304f46c26c24d89d2e31c7d09369e2
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFRDcwOjJENDBERTpCNzdFNTc6RTg5RkE5OjZCMDEzMzQyIiwidmlzaXRvcl9pZCI6IjgyMTM1NjM4MzQwNzUxODUzMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac16cd0a702d9a91f7980b03c8e602b6b1d0170ee1ab077c214f6dee75cd3797b6
hovercard-subject-tagpull_request:5006563061
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/NativeScript/pull/11587/files
twitter:imagehttps://avatars.githubusercontent.com/u/5261655?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/5261655?s=400&v=4
og:image:altPR Checklist The PR title follows the contribution guidelines. There is an issue for this bug: #11586. CLA signing previously declared by this contributor in #11552 and #11558. All reported CI...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/NativeScript/NativeScript git https://github.com/NativeScript/NativeScript.git
octolytics-dimension-user_id7392261
octolytics-dimension-user_loginNativeScript
octolytics-dimension-repository_id31492490
octolytics-dimension-repository_nwoNativeScript/NativeScript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id31492490
octolytics-dimension-repository_network_root_nwoNativeScript/NativeScript
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/NativeScript/pull/11587/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2FNativeScript%2Fpull%2F11587%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%2FNativeScript%2Fpull%2F11587%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%2FNativeScript
Reloadhttps://github.com/NativeScript/NativeScript/pull/11587/files
Reloadhttps://github.com/NativeScript/NativeScript/pull/11587/files
Reloadhttps://github.com/NativeScript/NativeScript/pull/11587/files
NativeScripthttps://github.com/NativeScript
NativeScripthttps://github.com/NativeScript/NativeScript
Codehttps://github.com/NativeScript/NativeScript
Issues231 (231)https://github.com/NativeScript/NativeScript/issues
Pull requests107 (107)https://github.com/NativeScript/NativeScript/pulls
Discussionshttps://github.com/NativeScript/NativeScript/discussions
Actionshttps://github.com/NativeScript/NativeScript/actions
Projectshttps://github.com/NativeScript/NativeScript/projects
Wikihttps://github.com/NativeScript/NativeScript/wiki
Security and qualityhttps://github.com/NativeScript/NativeScript/security
Insightshttps://github.com/NativeScript/NativeScript/insights
Sign up for GitHub https://github.com/signup?return_to=%2FNativeScript%2FNativeScript%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FNativeScript%2FNativeScript%2Fissues%2Fnew%2Fchoose
NathanWalkerhttps://github.com/NathanWalker
NativeScript:mainhttps://github.com/NativeScript/NativeScript/tree/main
rafaelaugustos:fix/ios-request-layout-lazy-controllerhttps://github.com/rafaelaugustos/NativeScript/tree/fix/ios-request-layout-lazy-controller
Conversation 2 https://github.com/NativeScript/NativeScript/pull/11587
Commits 4 https://github.com/NativeScript/NativeScript/pull/11587/commits
Checks 6 https://github.com/NativeScript/NativeScript/pull/11587/checks
Files changed https://github.com/NativeScript/NativeScript/pull/11587/files
Please reload this pagehttps://github.com/NativeScript/NativeScript/pull/11587/files
fix(ios): preserve lazy controller loading during layout invalidation https://github.com/NativeScript/NativeScript/pull/11587/files#top
Show all changes 4 commits https://github.com/NativeScript/NativeScript/pull/11587/files
91337f9 fix(ios): preserve lazy controller loading during layout invalidation rafaelaugustos Oct 25, 2026 https://github.com/NativeScript/NativeScript/pull/11587/commits/91337f9fcc9150ed5335c058beb5421699e93777
bd2f3de Merge branch 'main' into fix/ios-request-layout-lazy-controller rafaelaugustos Oct 30, 2026 https://github.com/NativeScript/NativeScript/pull/11587/commits/bd2f3deea9c59d04a8ef71b58fe2a7a0a3af030d
7fc7511 Merge branch 'main' into fix/ios-request-layout-lazy-controller rafaelaugustos Nov 12, 2026 https://github.com/NativeScript/NativeScript/pull/11587/commits/7fc75113bc1f19381c9fe2f1eb047045dad7d5ed
3858d6b test(ios): cast isLayoutRequested access in automated view tests NathanWalker Nov 12, 2026 https://github.com/NativeScript/NativeScript/pull/11587/commits/3858d6b8b6ddf2dbbce84c6488c11d5bc0d89319
Clear filters https://github.com/NativeScript/NativeScript/pull/11587/files
Please reload this pagehttps://github.com/NativeScript/NativeScript/pull/11587/files
Please reload this pagehttps://github.com/NativeScript/NativeScript/pull/11587/files
view-tests.ios.ts https://github.com/NativeScript/NativeScript/pull/11587/files#diff-f057031b5acfac97a2575e26e42f8e14302c4cd82f0ad11a1bc563ef3e2840e4
index.ios.ts https://github.com/NativeScript/NativeScript/pull/11587/files#diff-025d8125f2c2388468769424324a18b7a896921f7b44f720db8014eb653b5f84
request-layout.spec.ts https://github.com/NativeScript/NativeScript/pull/11587/files#diff-e43e80f14b35fb8d1d2a73418b79b5836060b18d1f458cd5493a971d80647ab5
vitest.setup.ts https://github.com/NativeScript/NativeScript/pull/11587/files#diff-ddf6541d9d5628e1067fc508b94fdd4fa700d5af4f6ebcc6438dda0115b8d371
apps/automated/src/ui/view/view-tests.ios.tshttps://github.com/NativeScript/NativeScript/pull/11587/files#diff-f057031b5acfac97a2575e26e42f8e14302c4cd82f0ad11a1bc563ef3e2840e4
View file https://github.com/rafaelaugustos/NativeScript/blob/3858d6b8b6ddf2dbbce84c6488c11d5bc0d89319/apps/automated/src/ui/view/view-tests.ios.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/NativeScript/NativeScript/pull/11587/{{ revealButtonHref }}
https://github.com/NativeScript/NativeScript/pull/11587/files#diff-f057031b5acfac97a2575e26e42f8e14302c4cd82f0ad11a1bc563ef3e2840e4
packages/core/ui/core/view/index.ios.tshttps://github.com/NativeScript/NativeScript/pull/11587/files#diff-025d8125f2c2388468769424324a18b7a896921f7b44f720db8014eb653b5f84
View file https://github.com/rafaelaugustos/NativeScript/blob/3858d6b8b6ddf2dbbce84c6488c11d5bc0d89319/packages/core/ui/core/view/index.ios.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/NativeScript/NativeScript/pull/11587/{{ revealButtonHref }}
https://github.com/NativeScript/NativeScript/pull/11587/files#diff-025d8125f2c2388468769424324a18b7a896921f7b44f720db8014eb653b5f84
https://github.com/NativeScript/NativeScript/pull/11587/files#diff-025d8125f2c2388468769424324a18b7a896921f7b44f720db8014eb653b5f84
packages/core/ui/core/view/request-layout.spec.tshttps://github.com/NativeScript/NativeScript/pull/11587/files#diff-e43e80f14b35fb8d1d2a73418b79b5836060b18d1f458cd5493a971d80647ab5
View file https://github.com/rafaelaugustos/NativeScript/blob/3858d6b8b6ddf2dbbce84c6488c11d5bc0d89319/packages/core/ui/core/view/request-layout.spec.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/NativeScript/NativeScript/pull/11587/{{ revealButtonHref }}
https://github.com/NativeScript/NativeScript/pull/11587/files#diff-e43e80f14b35fb8d1d2a73418b79b5836060b18d1f458cd5493a971d80647ab5
packages/core/vitest.setup.tshttps://github.com/NativeScript/NativeScript/pull/11587/files#diff-ddf6541d9d5628e1067fc508b94fdd4fa700d5af4f6ebcc6438dda0115b8d371
View file https://github.com/rafaelaugustos/NativeScript/blob/3858d6b8b6ddf2dbbce84c6488c11d5bc0d89319/packages/core/vitest.setup.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/NativeScript/NativeScript/pull/11587/{{ revealButtonHref }}
https://github.com/NativeScript/NativeScript/pull/11587/files#diff-ddf6541d9d5628e1067fc508b94fdd4fa700d5af4f6ebcc6438dda0115b8d371
https://github.com/NativeScript/NativeScript/pull/11587/files#diff-ddf6541d9d5628e1067fc508b94fdd4fa700d5af4f6ebcc6438dda0115b8d371
Please reload this pagehttps://github.com/NativeScript/NativeScript/pull/11587/files
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.