ionic-team / ionic-team/ionic-docs
Add info on how components are loaded (especially useful for Toast & Alert ones)
- 主要言語
- MDX
- スター
- 621
- フォーク
- 3.2k
- 平均マージ
- 1日 2時間
- マージ済み PR(30日)
- 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 はまだ評価されていません。