Skip to content

useReadQuery shows old cache contents in combination with useTransition and @defer #12135

@phryneas

Description

@phryneas

Issue Description

  1. visit https://apollo-client-nextjs-experimental-nextjs-app-support-2qcn8r5ns.vercel.app/rsc/dynamic/PreloadQuery/defer-queryRef-useReadQuery and wait for data to load in
  2. click "refetch" and wait for data to load in
  3. click "refetch" again and see that during loading, deferred data from 1. that has been overwritten by 2. shows up briefly

Link to Reproduction

apollographql/apollo-client-integrations#390

Reproduction Steps

No response

@apollo/client version

3.11.10

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