Skip to content

Searchbar #272

Merged
HerrBertling merged 31 commits intomainfrom
searchbar
Dec 29, 2024
Merged

Searchbar #272
HerrBertling merged 31 commits intomainfrom
searchbar

Conversation

@cordulaaa
Copy link
Collaborator

searchbar without functionality

submit(formRef.current, { replace: true, preventScrollReset: true });
// not the best solution as the tags now will timeout for 300ms as well - but with the onchange on the form I could not find another way
// to debounce the search input to not sent a request for each input .. happy for suggestions
clearTimeout(timeout)
Copy link
Collaborator

Choose a reason for hiding this comment

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

@HerrBertling Any thought about this? I did want to reuse the existing filtering through the url and implemented the searchbar the same way. But since we update on each change, the search was happening for each of the character inputs. To not introduce any new things there and also not introduce additional overhead I went with a quite pragmatic approach of debouncing the input for 300ms

smatthies and others added 3 commits December 17, 2024 20:28
Co-authored-by: Francine Melo Pêpe <franmelopepe2@gmail.com>
Co-authored-by: teletubbiepuddingmaschine@gmx.de <teletubbiepuddingmaschine@gmx.de>
@HerrBertling HerrBertling merged commit 298c32b into main Dec 29, 2024
6 checks passed
@HerrBertling HerrBertling deleted the searchbar branch December 29, 2024 21:04
@HerrBertling HerrBertling changed the title WIP - searchbar Searchbar Dec 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants