Modal route issue - route runs twice when returning from second modal containing route outlet
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- angular, typescript
- 領域
- frontend, mobile-dev
調査の方向性
NSRouteReuseStrategy.shouldDetach メソッドから始め、commit beb cde23c4d6a392638c23ec1e2bc63b06a9b43e の以前の実装と比較してください。リンク先の StackBlitz デモの番号付きフローを iOS 上で再現し、route outlet を含む 2 番目のモーダルから戻る操作も含めてください。完了条件は、5 番目のステップの戻るナビゲーションでアニメーションが逆方向と順方向に実行されるのではなく、1 回だけ実行されることです。
索引モデルが issue の本文から書いたものです。
説明
This is most evident in iOS. I've set up a demo app:
https://stackblitz.com/edit/nativescript-stackblitz-templates-vwcmqt
In iOS, if you follow the steps (they're numbered) you'll see that when you navigate back on step five, the animation runs twice—backwards then forwards. This appears to come from the shouldDetach method NSRouteReuseStrategy. If I use the previous code for shouldDetatch that was altered here:
https://github.com/NativeScript/angular/commit/bebcde23c4d6a392638c23ec1e2bc63b06a9b43e
then it works without problem.
NOTE: For this demo, I've used 14.2.6-alpha.0 because without it, I can't use modals with ModalDialogParams because of injector scope issues. However, this router problem described above also occurs in 14.2.5 when the modal corrections are in place. Either way, something isn't working as it should.
- 主要言語
- TypeScript
- スター
- 55
- フォーク
- 13
- 平均マージ
- 16分
- マージ済み PR(30日)
- 1
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
NativeScript/angular のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
NativeScript/angular#170 · コメント 1 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
NativeScript/angular#164 ·
-
My types are gone オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 45/100
NativeScript/angular#163 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 38/100
NativeScript/angular#158 · リアクション 1 件 ·
-
難易度 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