Skip to content
Source
Sign inSign up
TanStack/query

`gcTime` has a 32 bit limit #6513

Send to my agent
Closednahtnam(GitHub profile, opens in a new tab) opened this issue 1 comment

Describe the bug

I was trying to set the gcTime to 30 days and was noticing all sorts of bugs. Seems like it has a 32 bit integer limit

Your minimal, reproducible example

https://codesandbox.io/p/devbox/vigorous-lehmann-9gf2wv

Steps to reproduce

At 30 days, youll notice once you go to another page, the previous page's cache will be ejected. If you change it to 24 days (just under 32 bit limit), it works fine!

Expected behavior

Should accept any number, at least 64 bit

How often does this bug happen?

Every time

Screenshots or Videos

No response

Platform

Chrome

Tanstack Query adapter

None

TanStack Query version

5.13.4

TypeScript version

No response

Additional context

No response

  1. TkDodo closed this

  2. TkDodo added labelsduplicate

Sign in to join this conversation.