bibliomar / bibliomar-client

The front-end client for Bibliomar: A complete reading suite built for educational purposes.
https://www.bibliomar.site
MIT License
12 stars 3 forks source link

Fix and pinpoint source of very rare search mismatch bug #32

Open Lamarcke opened 1 year ago

Lamarcke commented 1 year ago

I've noticed that sometimes, very very rarely, results show up in the search bar, but not on the actual search results.

Possible causes This is probably an issue with how the value debounce works for the search bar. It takes into account how many characters a user has typed (including spaces) and has a threshold of simply "search on every three characters". iirc it doesn't search on X wait time.

It's a pretty simple system, but it helps avoids some potential extra requests on our ManticoreSearch engine.

It may be worth it unifying and migrating to React Query hooks to handle these.