ionic-team / ionic-team/ionic-framework
bug: vue and react routing integrations always pop when forward button is pressed
- 主要语言
- TypeScript
- 星标
- 52.7k
- 派生
- 13.3k
- 平均合并
- 1 天 14 小时
- 30 天内合并 PR
- 50
描述
# 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?
贡献指南
调研方向
首先复现所提供的 IonReactRouter 和 IonRouterOutlet 示例,包括先后退再前进的序列,并检查 Vue 集成中是否也会出现相同的行为。然后跟踪路由集成的入口点和现有的导航测试;当两个报告的集成都能在前进导航时显示与 URL 匹配的页面时,即视为完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- react, typescript
- 领域
- frontend, web-dev
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100