René's URL Explorer Experiment


Title: [Next] Back Navigation crashing the app w/ The specified child already has a parent · Issue #1516 · NativeScript/nativescript-angular · GitHub

Open Graph Title: [Next] Back Navigation crashing the app w/ The specified child already has a parent · Issue #1516 · NativeScript/nativescript-angular

X Title: [Next] Back Navigation crashing the app w/ The specified child already has a parent · Issue #1516 · NativeScript/nativescript-angular

Description: Working with next of tns-core-modules and nativescript-angular and navigating withnsRouterLink and then back with the hardware button is causing a crash. Steps to reproduce: Use this demo branch Load the app and the initial page will loa...

Open Graph Description: Working with next of tns-core-modules and nativescript-angular and navigating withnsRouterLink and then back with the hardware button is causing a crash. Steps to reproduce: Use this demo branch Lo...

X Description: Working with next of tns-core-modules and nativescript-angular and navigating withnsRouterLink and then back with the hardware button is causing a crash. Steps to reproduce: Use this demo branch Lo...

Opengraph URL: https://github.com/NativeScript/nativescript-angular/issues/1516

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Next] Back Navigation crashing the app w/ The specified child already has a parent","articleBody":"Working with `next` of `tns-core-modules` and `nativescript-angular` and navigating with`nsRouterLink` and then back with the hardware button is causing a crash.\r\n\r\nSteps to reproduce:\r\n- Use [this demo branch ](https://github.com/NickIliev/nativescript-ng-cosmos/tree/niliev/nsrouterlink-bug)\r\n\r\n- Load the app and the initial page will load with a closed sidedrawer. [Navigation through the sidedrawer](https://github.com/NickIliev/nativescript-ng-cosmos/blob/niliev/nsrouterlink-bug/app/app.component.html#L9) and **back** (to **\"Details\"**) is working as expected. \r\n\r\n- Navigate to the same details page[ via nsRouterLink](https://github.com/NickIliev/nativescript-ng-cosmos/blob/niliev/nsrouterlink-bug/app/pages/main/main.component.html#L9) by pressing the page upper content and then navigate back and the application will crash with:\r\n```\r\nJS: NavigationEnd(id: 4, url: '/info', urlAfterRedirects: '/info/app-info')\r\nJS: NavigationEnd(id: 4, url: '/info', urlAfterRedirects: '/info/app-info')\r\nJS: Router Event: Scroll\r\nJS: Scroll(anchor: 'null', position: 'null')\r\nJS: Scroll(anchor: 'null', position: 'null')\r\nSystem.err: java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.\r\nSystem.err:     at android.view.ViewGroup.addViewInner(ViewGroup.java:5122)\r\nSystem.err:     at android.view.ViewGroup.addView(ViewGroup.java:4953)\r\nSystem.err:     at android.view.ViewGroup.addView(ViewGroup.java:4893)\r\nSystem.err:     at android.view.ViewGroup.addView(ViewGroup.java:4866)\r\nSystem.err:     at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1425)\r\nSystem.err:     at android.support.v4.app.FragmentManagerImpl.moveFragmentToExpectedState(FragmentManager.java:1750)\r\nSystem.err:     at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1819)\r\nSystem.err:     at android.support.v4.app.BackStackRecord.executeOps(BackStackRecord.java:797)\r\nSystem.err:     at android.support.v4.app.FragmentManagerImpl.executeOps(FragmentManager.java:2590)\r\nSystem.err:     at android.support.v4.app.FragmentManagerImpl.executeOpsTogether(FragmentManager.java:2377)\r\nSystem.err:     at android.support.v4.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(FragmentManager.java:2332)\r\nSystem.err:     at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:2239)\r\nSystem.err:     at android.support.v4.app.FragmentManagerImpl$1.run(FragmentManager.java:700)\r\n...\r\n```\r\n\r\npackage.json content using **next**\r\n```JSON\r\n  \"dependencies\": {\r\n    \"@angular/common\": \"~6.1.0\",\r\n    \"@angular/compiler\": \"~6.1.0\",\r\n    \"@angular/core\": \"~6.1.0\",\r\n    \"@angular/forms\": \"~6.1.0\",\r\n    \"@angular/http\": \"~6.1.0\",\r\n    \"@angular/platform-browser\": \"~6.1.0\",\r\n    \"@angular/platform-browser-dynamic\": \"~6.1.0\",\r\n    \"@angular/router\": \"~6.1.0\",\r\n    \"nativescript-angular\": \"^6.2.0-2018-09-14-01\",\r\n    \"nativescript-app-center\": \"^1.0.3\",\r\n    \"nativescript-cardview\": \"^3.1.1\",\r\n    \"nativescript-permissions\": \"^1.2.3\",\r\n    \"nativescript-plugin-firebase\": \"^6.8.1\",\r\n    \"nativescript-social-share\": \"^1.5.1\",\r\n    \"nativescript-theme-core\": \"^1.0.4\",\r\n    \"nativescript-ui-sidedrawer\": \"^4.3.0\",\r\n    \"reflect-metadata\": \"~0.1.8\",\r\n    \"rxjs\": \"^6.0.0\",\r\n    \"tns-core-modules\": \"^4.3.0-2018-09-14-01\",\r\n    \"zone.js\": \"^0.8.26\"\r\n  },\r\n  \"devDependencies\": {\r\n    \"@angular/compiler-cli\": \"~6.1.0\",\r\n    \"@ngtools/webpack\": \"~6.2.0\",\r\n    \"nativescript-dev-typescript\": \"~0.7.3\",\r\n    \"nativescript-dev-webpack\": \"^0.17.0-2018-09-14-01\",\r\n    \"tns-platform-declarations\": \"^4.2.0\",\r\n    \"typescript\": \"~2.7.2\"\r\n  },\r\n```\r\n\r\nThe above case is working as expected with official versions of nativescript-angular and tns-core-modules. The navigation also works when `routerExtensions` is used ins tead of `nsRouterLink`\r\n\r\nWorkaround\r\n```TS\r\nthis._routerExtensions.navigate(\r\n                [path], {\r\n                transition: {\r\n                    name: \"fade\",\r\n                    duration: 300,\r\n                }\r\n            }\r\n        )\r\n```","author":{"url":"https://github.com/NickIliev","@type":"Person","name":"NickIliev"},"datePublished":"2018-09-14T14:05:51.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/1516/nativescript-angular/issues/1516"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:496dd4fb-e255-e51c-10c2-7c8d38fa5c86
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id89D6:321922:2BC59FF:3892E75:6974D0B6
html-safe-nonceae9af9ee29ed34d89de0ddbd19bd52ff8a5634cdfe6cd8eeb9dad2944639c8f3
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OUQ2OjMyMTkyMjoyQkM1OUZGOjM4OTJFNzU6Njk3NEQwQjYiLCJ2aXNpdG9yX2lkIjoiODgwODE3OTQ3ODU2MDAzNDk5OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacf31feb20cca380d6299562b04f5930037e7d8621ab4ea520e57957ce3ed1a15c
hovercard-subject-tagissue:360319223
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/nativescript-angular/1516/issue_layout
twitter:imagehttps://opengraph.githubassets.com/cd2065625c1beb75388e161ca5ef985d61940cb08226dbe71734418b55e95179/NativeScript/nativescript-angular/issues/1516
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/cd2065625c1beb75388e161ca5ef985d61940cb08226dbe71734418b55e95179/NativeScript/nativescript-angular/issues/1516
og:image:altWorking with next of tns-core-modules and nativescript-angular and navigating withnsRouterLink and then back with the hardware button is causing a crash. Steps to reproduce: Use this demo branch Lo...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameNickIliev
hostnamegithub.com
expected-hostnamegithub.com
None4a4bf5f4e28041a9d2e5c107d7d20b78b4294ba261cab243b28167c16a623a1f
turbo-cache-controlno-preview
go-importgithub.com/NativeScript/nativescript-angular git https://github.com/NativeScript/nativescript-angular.git
octolytics-dimension-user_id7392261
octolytics-dimension-user_loginNativeScript
octolytics-dimension-repository_id35951404
octolytics-dimension-repository_nwoNativeScript/nativescript-angular
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id35951404
octolytics-dimension-repository_network_root_nwoNativeScript/nativescript-angular
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
release488b30e96dfd057fbbe44c6665ccbc030b729dde
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/NativeScript/nativescript-angular/issues/1516#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2Fnativescript-angular%2Fissues%2F1516
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
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
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
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
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/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%2Fnativescript-angular%2Fissues%2F1516
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%2Fnativescript-angular
Reloadhttps://github.com/NativeScript/nativescript-angular/issues/1516
Reloadhttps://github.com/NativeScript/nativescript-angular/issues/1516
Reloadhttps://github.com/NativeScript/nativescript-angular/issues/1516
NativeScript https://github.com/NativeScript
nativescript-angularhttps://github.com/NativeScript/nativescript-angular
Please reload this pagehttps://github.com/NativeScript/nativescript-angular/issues/1516
Notifications https://github.com/login?return_to=%2FNativeScript%2Fnativescript-angular
Fork 240 https://github.com/login?return_to=%2FNativeScript%2Fnativescript-angular
Star 1.2k https://github.com/login?return_to=%2FNativeScript%2Fnativescript-angular
Code https://github.com/NativeScript/nativescript-angular
Issues 294 https://github.com/NativeScript/nativescript-angular/issues
Pull requests 2 https://github.com/NativeScript/nativescript-angular/pulls
Actions https://github.com/NativeScript/nativescript-angular/actions
Security 0 https://github.com/NativeScript/nativescript-angular/security
Insights https://github.com/NativeScript/nativescript-angular/pulse
Code https://github.com/NativeScript/nativescript-angular
Issues https://github.com/NativeScript/nativescript-angular/issues
Pull requests https://github.com/NativeScript/nativescript-angular/pulls
Actions https://github.com/NativeScript/nativescript-angular/actions
Security https://github.com/NativeScript/nativescript-angular/security
Insights https://github.com/NativeScript/nativescript-angular/pulse
New issuehttps://github.com/login?return_to=https://github.com/NativeScript/nativescript-angular/issues/1516
New issuehttps://github.com/login?return_to=https://github.com/NativeScript/nativescript-angular/issues/1516
[Next] Back Navigation crashing the app w/ The specified child already has a parenthttps://github.com/NativeScript/nativescript-angular/issues/1516#top
os: androidhttps://github.com/NativeScript/nativescript-angular/issues?q=state%3Aopen%20label%3A%22os%3A%20android%22
routerhttps://github.com/NativeScript/nativescript-angular/issues?q=state%3Aopen%20label%3A%22router%22
https://github.com/NickIliev
https://github.com/NickIliev
NickIlievhttps://github.com/NickIliev
on Sep 14, 2018https://github.com/NativeScript/nativescript-angular/issues/1516#issue-360319223
this demo branch https://github.com/NickIliev/nativescript-ng-cosmos/tree/niliev/nsrouterlink-bug
Navigation through the sidedrawerhttps://github.com/NickIliev/nativescript-ng-cosmos/blob/niliev/nsrouterlink-bug/app/app.component.html#L9
via nsRouterLinkhttps://github.com/NickIliev/nativescript-ng-cosmos/blob/niliev/nsrouterlink-bug/app/pages/main/main.component.html#L9
os: androidhttps://github.com/NativeScript/nativescript-angular/issues?q=state%3Aopen%20label%3A%22os%3A%20android%22
routerhttps://github.com/NativeScript/nativescript-angular/issues?q=state%3Aopen%20label%3A%22router%22
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.