TanStack / TanStack/tanstack.com

Search function is not working sometimes

Open
#1,198 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

source-audit
Dominant language
TypeScript
Stars
1.1k
Forks
401
Avg merge
18h 14m
Merged PRs (30d)
56

Description

Sometimes the documentation search is not working:
Image

It shows nothing.

But if I click on the Search button and wait for 2 seconds and type useMutation, it will return the results:
Image

This problem seems to have been around for a while, as I met the same problem a few months ago.

To reproduce:

  1. open any doc page, e.g., https://tanstack.com/query/latest/docs/reference/onlineManager
  2. click on the search button, then paste useMutation
  3. if you haven't see the issue, you might need to reload page and redo step 2.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue from the onlineManager documentation page: open search, paste useMutation, and repeat after reloading if needed. Compare the failing and successful behavior shown in the screenshots; done means the documentation search reliably returns results immediately after opening search and pasting a query.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend, search, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.