NativeScript / NativeScript/angular

Feature Request: Allow backnavigation over multipe pages

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

還沒有人認領這個 Issue。

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

描述

Is your feature request related to a problem? Please describe.
I am currently trying to move back in the navigation history by skipping multiple pages. For this I would need to be able to search a relevant page in the navigation history ( by its route) and then go back to this page by removing all pages on top of it in the navigation stack.
Seems like this is currently not possible.

Describe the solution you'd like
Would be great to have:
1: On API to be able to search for a page in the navigation stack, based on its route.
2: push all pages on top of the found page from the stack, hence navigate back by skipping multiple pages.

Describe alternatives you've considered
Currently I am storing the state of each page. If I need to move back more than one page I clear the navigation history and recreate the page. However, this is slow and visually appearing as the transition time is slower than it would need to. I am also using the nativescript/uicharts plugin which needs a longer initial loading time of the chart when a page is created.

貢獻指南

開啟貢獻指南

從這裡開始

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

研究方向

首先定位 NativeScript Angular navigation-stack 的進入點和現有的 back-navigation API。確認如何在 stack 中找到某個 route,以及如何移除位於它上方的頁面;當公開 API 支援跳回該 route 且不需重新建立中間頁面時,即視為完成。

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

評估

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

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

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