Skip to content

initialData has no effect if query is in flight #1158

@tannerlinsley

Description

@tannerlinsley

Prepping for a workshop and wanted to use this paradigm, but it feels broken and we should talk about it:

Expected:

  • Click on item before prefetching completes
  • Post view is shown using the initialData (imagine a preview/partial version of the data)
  • Full post is loaded as the original fetch from the prefetch call completes

Thoughts?

PS. This is also the behavior in 2.x

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions