ionic-team / ionic-team/ionic-framework

bug: The ionInfinite event of the ion-infinite-scroll component will not be triggered when entering the page for the first time

未关闭
#30,670 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
triage
主要语言
TypeScript
星标
52.7k
派生
13.3k
平均合并
1 天 15 小时
30 天内合并 PR
51

描述

### Prerequisites

- [x] I have read the [Contributing Guidelines](https://github.com/ionic-team/ionic-framework/blob/main/docs/CONTRIBUTING.md#creating-an-issue).
- [x] I agree to follow the [Code of Conduct](https://ionicframework.com/code-of-conduct).
- [x] I have searched for [existing issues](https://github.com/ionic-team/ionic-framework/issues) that already report this problem, without success.

### Ionic Framework Version

v7.x

### Current Behavior

Due to the fact that the ionInfinite event is not automatically triggered when entering the page, the page data is empty upon initial entry, and a manual scroll is required to trigger it

### Expected Behavior

After entering the page, the ion-infinite-scroll component should automatically trigger the ionInfinite event to load data, rather than manually loading the first page of data when entering the page

### Steps to Reproduce

xxx




### Code Reproduction URL

https://stackblitz.com/edit/vitejs-vite-rfelvggu?file=README.md

### Ionic Info

Ionic:

Ionic CLI : 7.0.14

Utility:

cordova-res : not installed
native-run : not installed

System:

NodeJS : v20.19.1
npm : 10.8.2
OS : Linux 5.0

### Additional Information

_No response_

贡献指南

打开贡献指南

调研方向

Start with the StackBlitz reproduction URL and the ion-infinite-scroll component entry point described in the issue. Verify whether ionInfinite fires on the initial page entry without a manual scroll, then use that behavior as the completion check while preserving the disabled and loading-content cases shown.

由索引模型根据 Issue 内容生成。

评估

技术栈
typescript
领域
frontend
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。