TanStackT
TanStack3y ago
32 replies
scornful-crimson

keepPreviousData Version 5

I want to achive the same result as
 keepPreviousData: true

did in version 4 but in version 5,
when i read the documentation it say it should be:
import { useQuery, keepPreviousData } from '@tanstack/react-query'
placeholderData: keepPreviousData

But i get : Uncaught SyntaxError: ambiguous indirect export: keepPreviousData
Was this page helpful?