Skip to content
Source
Sign inSign up
TanStack/query

Why is staleTime set to 5000, and when switching to other menus, a request will be sent for both expired and non expired pages??? #9637

Send to my agent
Closed331797832(GitHub profile, opens in a new tab) opened this issue 2 comments

Describe the bug

https://github.com/user-attachments/assets/ed1d2932-1c86-4a3e-9ebf-303d8cfa8812

Your minimal, reproducible example

Vue3 tS

Steps to reproduce

Why is staleTime set to 5000, and when switching to other menus, a request will be sent for both expired and non expired pages???

Expected behavior

Why is staleTime set to 5000, and when switching to other menus, a request will be sent for both expired and non expired pages???

How often does this bug happen?

None

Screenshots or Videos

Why is staleTime set to 5000, and when switching to other menus, a request will be sent for both expired and non expired pages???

Platform

Why is staleTime set to 5000, and when switching to other menus, a request will be sent for both expired and non expired pages???

Tanstack Query adapter

None

TanStack Query version

5.87.1

TypeScript version

No response

Additional context

No response

  1. TkDodocommented

    Thank you for filing this issue, but we need more information before looking into this.

    Specifically, a minimal, standalone, runnable reproduction is needed - preferably with codesandbox or stackblitz. If your issue is TypeScript related, prefer a TypeScript playground.

    We'll close this issue for now, but we'll certainly re-open it if there is a proper reproduction.

  2. TkDodo closed this

  3. TkDodo added labelsneeds-info

Sign in to join this conversation.