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

[Bug]: Blink on fast left/right swipes in mobile #11125

Open
sh3l6orrr opened this issue Dec 17, 2023 · 1 comment
Open

[Bug]: Blink on fast left/right swipes in mobile #11125

sh3l6orrr opened this issue Dec 17, 2023 · 1 comment
Labels

Comments

@sh3l6orrr
Copy link

sh3l6orrr commented Dec 17, 2023

What version of React Router are you using?

v6.20.1

Steps to Reproduce

I had this issue with my own app built with react router, but I found that it also exists on the react router official site.

Use iPhone/iPad to browse https://reactrouter.com (with either Safari or Chrome), click What's New?, then perform a fast left swipe. After going back to the home page, perform a fast right swipe. Repeat several times.

Expected Behavior

Swipes should be smooth navigations with no unexpected behaviors.

Actual Behavior

The page blinks within 1 second whenever a swipe is performed.

  1. The issue also persists on ipad, but not mac.
  2. If the swipe goes slower then there's likely no flicker.
  3. Using the forward/back button will not lead to a flicker.
  4. The flicker happens most intensively when swiping from a page with a list of items.
  5. I tried global pending UI, but it does not help.
  6. I tested also on https://react.dev/, there's no flicker.
@sh3l6orrr sh3l6orrr added the bug label Dec 17, 2023
@imwexpex
Copy link

It looks more like a Safari bug with client-side routing. Some cache issues on swipes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants