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

Blink with useTransition #17239

Closed
gregberge opened this issue Oct 31, 2019 · 3 comments
Closed

Blink with useTransition #17239

gregberge opened this issue Oct 31, 2019 · 3 comments

Comments

@gregberge
Copy link

Bug

What is the current behavior?

As discussed with @gaearon in this thread: https://twitter.com/dan_abramov/status/1189923059031068672

When the useTransition is fast, it results to a small blink for the user. You can reproduce it in this example :

  • Choose "Concurrent Mode"
  • Click "Next" in "fretch-mode: legacy-mode"

https://codesandbox.io/s/fretch-example-r6t8g

A simpler example can be provided but I don't have time right now, I just want to track the issue.

What is the expected behavior?

The expected behaviour would be to avoid the blink if it is less than "100ms" (or another arbitrary delay).

Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?

The experimental version, see the example.

@gaearon
Copy link
Collaborator

gaearon commented Jun 29, 2020

This sandbox has a lot of code. Any chance you could isolate that to a minimal example?

@gregberge
Copy link
Author

This sandbox has a lot of code. Any chance you could isolate that to a minimal example?

Hello, since I don't work on it any more, no chance sorry!

@gaearon
Copy link
Collaborator

gaearon commented Jun 23, 2021

This is likely same as #18006 (comment).

@gaearon gaearon closed this as completed Jun 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants