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

Add throttling for loading indicator #138

Open
mkrause opened this issue Feb 12, 2025 · 0 comments
Open

Add throttling for loading indicator #138

mkrause opened this issue Feb 12, 2025 · 0 comments

Comments

@mkrause
Copy link
Collaborator

mkrause commented Feb 12, 2025

We already add a delay, but it would be good to also add a minimum time that the loading indicator is shown on screen, to reduce flickering.

See:

Note: we could use this same approach for exit animations, for example the useDelayedUnmount in ModalProvider could probably be simplified with something like useThrottled(active, cond ? unmountDelay : 0).

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

No branches or pull requests

1 participant