Skip to content

dbeaver/pro#7657 avoid blicking by debounce loading state#4174

Open
devnaumov wants to merge 5 commits intodevelfrom
dbeaver/pro#7657-debounce-loading-state
Open

dbeaver/pro#7657 avoid blicking by debounce loading state#4174
devnaumov wants to merge 5 commits intodevelfrom
dbeaver/pro#7657-debounce-loading-state

Conversation

@devnaumov
Copy link
Member

@devnaumov devnaumov commented Feb 25, 2026

closes 7657

delay showing
instant hiding

@Wroud
Copy link
Member

Wroud commented Feb 26, 2026

in general, if loader mounted with loading state it should immediately display loading state, if loader changed state to the loading state it should delay it

@devnaumov
Copy link
Member Author

in general, if loader mounted with loading state it should immediately display loading state, if loader changed state to the loading state it should delay it

yes, it works that way now

Comment on lines +25 to +26
internalCallbackRef.current = callback;
delayRef.current = delay;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should not update refs during render, as we have discussed that before. You can read or write refs from event handlers or effects instead.

@devnaumov devnaumov requested review from SychevAndrey and Wroud March 1, 2026 21:17
@devnaumov devnaumov requested a review from Wroud March 2, 2026 06:21
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

Successfully merging this pull request may close these issues.

5 participants