ionic-team / ionic-team/ionic-framework

Lifecycle events called in wrong order

オープン
#17,373 コメント 4 件 リアクション 5 件 担当者 0 名 GitHub で見る
package: angular type: bug
主要言語
TypeScript
スター
52.7k
フォーク
13.3k
平均マージ
1日 15時間
マージ済み PR(30日)
51

説明

# Bug Report

**Ionic version:**
[x] **4.0.0**

**Current behavior:**
When changing the root page the lifecycle events of the previous and next page seem to fire out of order. So, lets say page A is currently displayed. Navigating to page B fires the lifecycle events in the following order:
1. Page B: ngOnInit
2. Page B: ionViewWillEnter
3. Page B: ionViewDidEnter
4. Page A: ngOnDestroy

(ionViewWillLeave and ionViewDidLeave do not fire at all)

**Expected behavior:**
I would expect that page A fires ngOnDestroy or ionViewWillLeave or ionViewDidLeave before page B's 'enter' events

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。