Skip to content

2.0.0-rc.8 Loading reset leaves an outside conditional reader stale #3412

Description

@GabbeV

Describe the bug

While an async update is pending, setting show to false updates its displayed value but leaves show() ? details() : "hidden" displaying the old details. It only hides when the unrelated remaining async work finishes.

Your Example Website or App

https://s.olid.uk/id/962ZP8l7TDyogBmL62UPRQ

Steps to Reproduce the Bug or Issue

  1. Wait for initialization.
  2. Click Run.
  3. Show becomes false after 500ms, but Panel still displays 0.
  4. Panel finally becomes hidden when Details finishes loading.

Expected behavior

Panel displays hidden when Show becomes false.

Screenshots or Videos

No response

Platform

  • OS: Windows
  • Browser: Firefox

Additional context

Reproduced on next at 14ded24, #3337 at 20f3143 and #3405 at 323f9ad.

The conditional reader is outside Loading. Removing the boundary, its on prop, or the unconditional Details reader removes the mismatch. Possibly related to #3407, but this reproduces without actions and publishes the visibility flag while leaving its dependent output stale.

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