ionic-team / ionic-team/ionic-framework

bug: vue and react routing integrations always pop when forward button is pressed

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

説明

# Bug Report

**Ionic version:**

[ ] **4.x**
[x] **5.x**

**Current behavior:**

If I press back button and press forward button the url is correct but the page is wrong

**Expected behavior:**

it should display correct page

**Steps to reproduce:**

**Related code:**

App component
```
const App: React.FC = () => (











);
```

PageOne component
```
const PageOne = ({ history }) => {
return (


This is Page One!


history.push('/pagetwo')}>
Go to page two



)
}
```

PageTwo component
```
const PageTwo = ({ history }) => {
return (


This is Page Two!


history.push('/pagethree')}>
Go to page three



)
}
```

**Other information:**

Example:

https://www.loom.com/share/048952f5848f443a8e108f52906e0ba4

Question:

1. Based on the Ionic component doc, we need to use `href` in `IonButton` in order to go to a page which does not render page transition animation (I assume it just updates the location.href). But I can also use `routerLink` to go to a page with page transition. Which is recommended?

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

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

調査の方向性

Start by reproducing the supplied IonReactRouter and IonRouterOutlet example, including the back-then-forward sequence, and check whether the same behavior occurs in the Vue integration. Then trace the routing integration entry points and existing navigation tests; done means the forward navigation displays the page matching the URL in both reported integrations.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
react, typescript
領域
frontend, web-dev
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

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

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