Skip to content

When placeholderData is set, initial status is success #1712

@eedv

Description

@eedv

Describe the bug
When placeholderData is set, initial status is success

To Reproduce
Example: https://codesandbox.io/s/react-query-placeholder-data-h7hz4?file=/src/App.js

Expected behavior
From documentation is not clear if this is expected behavior. I understand the initial status success using initialData because is persisted in the cache, but if I have partial data to show I still need to know if the rest of it is loading

Smartphone (please complete the following information):
any platform

Additional context
I'm starting to migrate an app from redux-saga to react-query and is really wonderful
Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions