Bug: Named Outlet non responsive after `clearHistory` navigation
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- angular, typescript
- 领域
- mobile
调研方向
克隆链接的 named-router-navigation-bug sample 并在 Android 上运行。按照列出的导航序列操作,然后跟踪 clearHistory 所涉及的 NativeScript Angular 路由和 named-outlet 处理。完成标准是第二次按下“Nested route in navbar”后嵌套路由得到更新,并且相关导航行为由回归检查覆盖。
由索引模型根据 Issue 内容生成。
描述
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
- 主要语言
- TypeScript
- 星标
- 55
- 派生
- 13
- 平均合并
- 16 分钟
- 30 天内合并 PR
- 1
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
NativeScript/angular 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 45/100
NativeScript/angular#170 · 1 条评论 ·
-
难度 5/5 一周以上 新手友好度 35/100
NativeScript/angular#164 ·
-
难度 2/5 1-3 小时 新手友好度 45/100
NativeScript/angular#163 · 1 条评论 ·
-
难度 4/5 3-5 天 新手友好度 38/100
NativeScript/angular#158 · 1 个 reaction ·
-
难度 2/5 1-3 小时 新手友好度 35/100
NativeScript/angular#155 ·
查看 NativeScript/angular 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 72/100
-
难度 1/5 1 小时以内 新手友好度 85/100
-
check:passed streams:add
难度 2/5 1-3 小时 新手友好度 68/100
-
难度 2/5 1-3 小时 新手友好度 76/100
-
难度 2/5 1-3 小时 新手友好度 68/100