ionic-team / ionic-team/ionic-docs

Vanilla Javascript Reload (Astro View Transitions)

Abierto
#3,659 0 comentarios 0 reacciones 0 asignados Ver en GitHub
triage
Lenguaje dominante
MDX
Estrellas
621
Forks
3.2k
Merge medio
1 d 2 h
PR fusionados (30 d)
86

Descripción

### URL

https://ionicframework.com/docs/intro/cdn

### Issue Description

Using Ionic + Capacitor to create a native/web-app with Astro, the current issue is that View Transitions prevents the vanilla Javascript CDNs from reloading again. That throws away the styling that the HTML tag implements for the proper styling if the page is viewed on iOS, Android, or the web. Astro has functions to run scripts at [different points of the transition process](https://docs.astro.build/en/guides/view-transitions/#lifecycle-events) but after looking through the Ionic Component documentation, I don't see a way to re-initialize Ionic. I'm not sure if this is more of an Astro problem or an Ionic problem.

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.