T
TanStack2y ago
sensitive-blue

Why use placeholder data instead of props?

Basically the title, what are the benefits of placeholder data instead of just passing some props to the component that can be used in the initial render?
1 Reply
fair-rose
fair-rose2y ago
types are better placeholderData can be used when transitioning between queries of different keys

Did you find this page helpful?