Skip to content

Conditional JSX stays stale during a held branch change #3438

Description

@GabbeV

Describe the bug

While an async memo holds show at true, updating count displays Count: 1 but leaves show() ? count() : "hidden" displaying 0.

Your Example Website or App

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

Steps to Reproduce the Bug or Issue

  1. Wait for initialization.
  2. Click Run.
  3. After 500ms, Count becomes 1 while Show remains true and Panel remains 0.
  4. After another 500ms, Show becomes false and Panel becomes hidden.

Expected behavior

Panel should agree with Count while Show is true.

Screenshots or Videos

No response

Platform

Verified with compiled JSX in jsdom on Node.js 24.18.0, in development and production builds.

Additional context

Reproduced on next at efcaeba, after #3431 merged, and on #3337 at 20f3143.

Related to #3410, but this is an inline JSX conditional. Wrapping the conditional in createMemo avoids the mismatch on next.

Unlike #3412, this needs no Loading boundary or reset; Show still correctly displays true during the mismatch.

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