Title: Navigate after modal closed is not working properly. · Issue #313 · NativeScript/nativescript-schematics · GitHub
Open Graph Title: Navigate after modal closed is not working properly. · Issue #313 · NativeScript/nativescript-schematics
X Title: Navigate after modal closed is not working properly. · Issue #313 · NativeScript/nativescript-schematics
Description: Describe the bug When I open a modal and navigate to another page in the modal callback/promise, the page opens and then open the page that was opened before and multiply the pages in the stack. My solution is to wait for 300 millisecond...
Open Graph Description: Describe the bug When I open a modal and navigate to another page in the modal callback/promise, the page opens and then open the page that was opened before and multiply the pages in the stack. My...
X Description: Describe the bug When I open a modal and navigate to another page in the modal callback/promise, the page opens and then open the page that was opened before and multiply the pages in the stack. My...
Opengraph URL: https://github.com/NativeScript/nativescript-schematics/issues/313
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Navigate after modal closed is not working properly.","articleBody":"**Describe the bug**\r\nWhen I open a modal and navigate to another page in the modal callback/promise, the page opens and then open the page that was opened before and multiply the pages in the stack. My solution is to wait for 300 milliseconds to navigate to the other page. This solution works with no problem. But my concern is if on some other devices the modal take more time than the 300 milliseconds to navigate back y application will break.\r\n\r\n**To Reproduce**\r\nNavigate to a page and open a modal in that page. Navigate to another page as soon as the `then` promise is called.\r\n```\r\nthis.modalService.showModal(MyModalComponent, {\r\n fullscreen: false,\r\n viewContainerRef: this.viewContainer\r\n}).then(ajoute =\u003e {\r\n //router is RouterExtensions\r\n this.router.navigate([\"/a-page\"], {transition: {name: 'slide'}})\r\n})\r\n```\r\n**Expected behavior**\r\nThe navigation should works with no problem. The promise was supposed to get called after the modal navigate to the page it was before.\r\n","author":{"url":"https://github.com/Guervyl","@type":"Person","name":"Guervyl"},"datePublished":"2021-02-18T07:58:24.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/313/nativescript-schematics/issues/313"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:657f796a-fea5-2afe-9c1c-ce0c8378db39 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A8EA:153B16:66C366:8AEBFD:6A627DCC |
| html-safe-nonce | e6e3560a2684a8da35931346a5c0e5b9af4aa8f0b13066e74c8c6d96ad8ea4fa |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOEVBOjE1M0IxNjo2NkMzNjY6OEFFQkZEOjZBNjI3RENDIiwidmlzaXRvcl9pZCI6IjIwNDQ3MzUyMDcyOTIxNzM3NzIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | eeef01519b56944427cd04cdf5c804575e5172f913bcba9a9e9679f6e0c2919e |
| hovercard-subject-tag | issue:810856351 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/NativeScript/nativescript-schematics/313/issue_layout |
| twitter:image | https://opengraph.githubassets.com/67975917624ef08689f05549fc11f1b4b7e59b2e1bd483b0462fbbd217f4d76f/NativeScript/nativescript-schematics/issues/313 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/67975917624ef08689f05549fc11f1b4b7e59b2e1bd483b0462fbbd217f4d76f/NativeScript/nativescript-schematics/issues/313 |
| og:image:alt | Describe the bug When I open a modal and navigate to another page in the modal callback/promise, the page opens and then open the page that was opened before and multiply the pages in the stack. My... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Guervyl |
| hostname | github.com |
| expected-hostname | github.com |
| None | 54d77223ecd96549586d00f1e91ee7d05feebf27ea430279a9c4ba4b7de1a93c |
| turbo-cache-control | no-preview |
| go-import | github.com/NativeScript/nativescript-schematics git https://github.com/NativeScript/nativescript-schematics.git |
| octolytics-dimension-user_id | 7392261 |
| octolytics-dimension-user_login | NativeScript |
| octolytics-dimension-repository_id | 111834299 |
| octolytics-dimension-repository_nwo | NativeScript/nativescript-schematics |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 111834299 |
| octolytics-dimension-repository_network_root_nwo | NativeScript/nativescript-schematics |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4d79f1b99472a521fc5fb66e9fdc3ce742937dff |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width