J.
Need Guidance Optimizing Multi-Select Typeahead
What your environment is: Node 18? Bun? pnpm / yarn / npm?
- Bun v1.0.23
- Next.js v14.1.0 (app router)
- tRPC v^10.45.0
- React Query v4
What's wrong: with complete and exact errors
The current challenge involves the implementation of a multi-select typeahead feature.
The objective is to disable the query when the user input's prefix matches any empty cached data.
For instance, if a user enters "hello" and receives data
[...]
, then enters "hellow" resulting in an empty data []
, all subsequent queries prefixed with "hellow" should be disabled.
What you have: any relevant code which you can share, better yet a full repo or stackblitz
1 replies