ionic-team / ionic-team/ionic-docs

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

Ouverte
#2,532 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
content
Langage dominant
MDX
Étoiles
621
Forks
3.2k
Merge moyen
1 j 2 h
PR mergées (30 j)
86

Description

**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.

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.