Skip to content

2.0.0-rc Loading reveals stale content before downstream async work finishes #3375

Description

@GabbeV

Describe the bug

After two updates to a Loading boundary's on value, it leaves its fallback before the new details are ready. The repro shows Details: 0 → Loading... → Details: 0 → Details: 3. The second 0 is stale: the displayed sum is already 3.

Your Example Website or App

https://s.olid.uk/id/KASyYgRqQcqR9mASsJOqbA

Steps to Reproduce the Bug or Issue

  1. Wait for Sum and Details to show 0.
  2. Click Run.
  3. Loading disappears and the old Details: 0 returns for two seconds before Details: 3 arrives.

Expected behavior

Keep the loading fallback until the new details are ready, then show Details: 3.

Screenshots or Videos

No response

Platform

  • OS: Windows
  • Browser: Firefox

Additional context

Reproduces on next at f8b40b7 (development and production) and #3337 at 20f3143.

Removing either setCount(1) or the second page update prevents the stale reveal.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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