ionic-team / ionic-team/ionic-docs

Add info on how components are loaded (especially useful for Toast & Alert ones)

未关闭
#2,532 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
content
主要语言
MDX
星标
621
派生
3.2k
平均合并
1 天 2 小时
30 天内合并 PR
86

描述

**URL**
The URL at which the content is missing or inaccurate:
- Globally at: https://ionicframework.com/docs/components
- Or in the Toast & Alert component at: https://ionicframework.com/docs/api/toast, https://ionicframework.com/docs/api/alert

**What is missing or inaccurate about the content on this page?**
I was testing that an app that I'm developing was working correctly when the user's device does not have an internet connection, and for that I'm displaying a toast when a request fails because he does not have an internet connection. But this toast was never displaying and every time I was getting an error in the developer console of my browser. I did some research and figure out that components are lazy loaded and that was the cause of the problem (see the explanation here: https://github.com/ionic-team/ionic-framework/issues/17450#issuecomment-628223724).

Hence, this would be really cool to add this explanation on the Ionic website to inform people that you have to preload components that you want to display when the user's device goes offline.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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