Skip to content

watchFragment reports result as complete when from object is not identifiable #12003

Open
@jerelmiller

Description

@jerelmiller

Issue Description

When running client.watchFragment, the result returned from the observable reports the result as complete: true when the from object is not identifiable (i.e. cache.identify returns undefined). The data object is empty and is correct, but we should also reflect this in the complete and missing properties as well.

Link to Reproduction

#12002

Reproduction Steps

See the failing test for the example

@apollo/client version

3.11.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions