Skip to content

fix search input desync with debounced query#2097

Merged
Simek merged 1 commit intomainfrom
query-desync-fix-attempt
Jan 8, 2026
Merged

fix search input desync with debounced query#2097
Simek merged 1 commit intomainfrom
query-desync-fix-attempt

Conversation

@Simek
Copy link
Copy Markdown
Member

@Simek Simek commented Jan 7, 2026

📝 Why & how

Hopefully fixes #2096

Looks like when clearing a search input and retyping new value quickly within the debounce window (200ms) it might sometimes lead to query param and input value desync, due to search induced useEffect triggering before debounce ended.

The useEffect block has been added few months ago due to desync caused by pressing homepage logo link, but after changes to link element within Tailwind refactor this should no longer be a case, which made this update effect redundant.

✅ Checklist

  • Documented how you found or replicated the issue.
  • Explained how you fixed the issue or built the feature.

Preview

https://react-native-directory-q94s4znsj-rndir.vercel.app/

@Simek Simek added the deploy label Jan 7, 2026
Copy link
Copy Markdown

@ahmedshayea ahmedshayea left a comment

Choose a reason for hiding this comment

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

That resolved the issue entirely.

@Simek Simek merged commit b17f6aa into main Jan 8, 2026
2 checks passed
@Simek Simek deleted the query-desync-fix-attempt branch January 8, 2026 08:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

'Search libraris' input field clears text while still typing

2 participants