staleTime config in TypeScript #1294
-
Hello, I'm working on converting my application from JS to TS and, in some cases, I use react-query with If I change types.d.ts in node_modules to It removes the flags. Am I doing right? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Beta Was this translation helpful? Give feedback.
{ staleTime: Infinity }
should work.Infinity
, without the quotes, is a number provided by JavaScript :)