T
TanStack15mo ago
wise-white

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
protestant-coral
protestant-coral15mo ago
types are better placeholderData can be used when transitioning between queries of different keys

Did you find this page helpful?