hotwired / turbo-android

Android framework for making Turbo native apps
MIT License
424 stars 50 forks source link

Perform same-page visit proposals without recreating the current destination #292

Closed jayohms closed 7 months ago

jayohms commented 10 months ago

Currently, when Turbo submits a form and redirects back to the same page, the current destination fragment is recreated. This displays a visual flash and doesn't work well with the upcoming Turbo 8 morphing feature.

To fix this, visit proposals for the same page are no longer proposed to the app. Instead, an immediate Turbo visit is started in the WebView so Turbo can seamlessly handle the visit and provide a better visual update with morphing.