NativeScript / NativeScript/angular

Bug: Named Outlet non responsive after `clearHistory` navigation

未關閉
#39 7 則留言 1 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

主要語言
TypeScript
星號
55
分支
13
平均合併
16 分鐘
30 天內合併 PR
1

描述

Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):

  • CLI: 8.1.3
  • Cross-platform modules: NA
  • Android Runtime: 8.1.1
  • iOS Runtime: Not Tested
  • Plugin(s): @nativescript-community/ui-material-bottomnavigationbar
  • NativeScript-Angular: 12.2.0
  • Angular: 12.2.0

Describe the bug
When navigating to a nested route (one with a named outlet) after a clearHistory a navigation event would fire, but the outlet would not be updated

To Reproduce
Clone https://github.com/herefishyfish/named-router-navigation-bug
Start Android application
Press "Go to dashboard"
Press "Nested route in navbar"
Press Notifications tab
Press Todos tab
Press "Nested route in navbar"

Expected behavior
For the second press of Nested route in navbar to navigate to the nested route.

Sample project
https://github.com/herefishyfish/named-router-navigation-bug

Additional context
There was a few messages in Discord about this:
https://discord.com/channels/603595811204366337/606457628729671691/895530953068408894

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

研究方向

Clone 連結的 named-router-navigation-bug sample,並在 Android 上執行。依照列出的導覽序列操作,然後追蹤 clearHistory 所涉及的 NativeScript Angular 路由與 named-outlet 處理。完成標準是第二次按下「Nested route in navbar」後巢狀路由會更新,且相關導覽行為由回歸檢查涵蓋。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
angular, typescript
領域
mobile
Issue 類型
缺陷
難度
4/5
預估耗時
3-5 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。