Skip to content

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

Merged
jayohms merged 9 commits intomainfrom
same-page-refresh
Feb 23, 2024
Merged

Perform same-page visit proposals without recreating the current destination#292
jayohms merged 9 commits intomainfrom
same-page-refresh

Conversation

@jayohms
Copy link
Copy Markdown
Collaborator

@jayohms jayohms commented Nov 16, 2023

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.

@jayohms jayohms requested a review from mbarta November 17, 2023 14:35
Copy link
Copy Markdown
Contributor

@mbarta mbarta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks! 👍

* main:
  Bump minSdkVersion to 26 in the docs
  Bump minSdkVersion to 26
  Upgrade to SDK 34 and bump dependencies to latest versions
…hout any flickering. Use Turbo.navigator.location to determine the current location, so it works immediately cold boots and Turbo visits
@jayohms jayohms merged commit c0d05e7 into main Feb 23, 2024
@jayohms jayohms deleted the same-page-refresh branch February 23, 2024 03:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants