Adding Sanity search to CommandMenu #1229
Unanswered
JamesSingleton
asked this question in
Q&A
Replies: 1 comment
-
Try setting the shouldFIlter Props to false |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have been trying to add a debounced search to the CommandMenu for awhile now with no success. I basically want to recreate the search on https://nextjs.org but with articles that a user can search for.
When I type something into the search I see that
searchResults
is populated. I do get some stuff to show up, but it isn't consistent. For example if I searchvmi
for some reason it's only showing 2 results even though there are 12 resultsIf I backspace to just
vm
, I now get 9 results even though my results array has 12 in it.I feel like I am missing something super obvious. I just want to add actual search functionality to the command menu, not just pass in static items.
Beta Was this translation helpful? Give feedback.
All reactions