Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 9 commits into from
Feb 23, 2024

Conversation

jayohms
Copy link
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
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
1 check passed
@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