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

Fix search results flicker when timeline images are loading #1293

Merged
merged 1 commit into from
Dec 10, 2024

Conversation

LukasKalbertodt
Copy link
Member

Before this change, hovering over a timeline caused the component to suspend, which caused the somewhat global suspense boundary to trigger, replacing all search results with "loading". That was visually distracting and bad. Now every tooltip has its own suspense boundary, event showing a spinner while it is loading.

To nicely compare before and after, add tokio::time::sleep(std::time::Duration::from_secs(1)).await; somewhere in handle_api (in http/handle.rs).

@LukasKalbertodt LukasKalbertodt added the changelog:nope Not worth mentioning in the changelog label Dec 9, 2024
@LukasKalbertodt LukasKalbertodt force-pushed the fix-search-hover-flicker branch from 0b5c1f2 to f1ea2ee Compare December 9, 2024 12:20
@github-actions github-actions bot temporarily deployed to test-deployment-pr1293 December 9, 2024 12:23 Destroyed
@owi92
Copy link
Member

owi92 commented Dec 10, 2024

Wow, I didn't even notice that before. Thanks for the note on how to compare.

@owi92 owi92 merged commit 7c530ab into elan-ev:next Dec 10, 2024
2 of 3 checks passed
@LukasKalbertodt LukasKalbertodt deleted the fix-search-hover-flicker branch December 10, 2024 11:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog:nope Not worth mentioning in the changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants