-
Notifications
You must be signed in to change notification settings - Fork 63
Search bar result count always displays "no results" #726
Comments
Interesting. The other thing I'm noticing is that on the initial render it will show "no results" and then switch to "over 10k". Given we already know the result count during SSR I'm not sure why the first render says "no results" 🤔 Maybe there's a way where it gets stuck on that initial render somehow? |
I'm not able to reproduce scenarios where the incorrect count displays in the header, but I do see the flash of 'no results' on initial render and that would be great to resolve. |
I cannot figure out how to watch the store for changes. The SSR is supposed to be set up so that whenever the result count changes, the search bar result also updates, but it doesn't work. I've tried using a watcher in the setup function (for I hope that when we update to Pinia, this problem will be solved. |
Lately, I notice more that it stays in the "Loading..." state (the main branch, not production). Perhaps this is a silly question but @obulat making the |
I've noticed that behavior locally too @krysal. It doesn't happen in prod or https://search-dev.openverse.engineering so I'm not sure what the issue is locally 🤔 |
I'm seeing the same behavior locally |
I have noticed the "Loading..." state, too, @krysal , and I'm not sure what the reason for it is. |
Description
The search bar result count just displays "no results" for every search regardless of how many results actually exist.
Reproduction
Expectation
It should say the number of results following the rules we originally had for that count.
Additional context
Marking this as a11y and critical as screen reader users could easily be confused by this and thing their search yielded no results.
Resolution
The text was updated successfully, but these errors were encountered: