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

Search fixes #319

Merged
merged 2 commits into from
Sep 22, 2023
Merged

Search fixes #319

merged 2 commits into from
Sep 22, 2023

Conversation

Aprillion
Copy link
Collaborator

  • running all of the intermediate searches was too slow, so the queue wasn't enough
  • manually debouncing searchLater() to the latest query while a previous one is running works better for me
  • https://stampy-ui.aprillion.workers.dev/

* use state for re-render
* use ref for current query detection in closure functions from previous render
* queue wasn't enough, change to manual debounce of searchLater
* add console debug to check after deployment
@Aprillion
Copy link
Collaborator Author

Aprillion commented Sep 22, 2023

no negative review feedback yet, but some light testing discussed in https://discord.com/channels/677546901339504640/1125882087908573305/1152520552154673242 => merging

@Aprillion Aprillion merged commit c077070 into master Sep 22, 2023
1 check passed
@Aprillion Aprillion deleted the search-debug branch September 22, 2023 15:36
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.

1 participant