Skip to content

latest inside Show stays stale while removal is pending #3444

Description

@GabbeV

Describe the bug

Two paragraphs read latest(count), one inside Show and one outside. While an action is pending, Outside becomes 1 but the still-visible Inside remains 0.

Your Example Website or App

https://s.olid.uk/id/r5C3uxJ0RRCPg0eB-PXsWA

Steps to Reproduce the Bug or Issue

  1. Click Run.
  2. Outside becomes 1 while Inside remains visible showing 0.
  3. After one second, Inside disappears.

Expected behavior

Both paragraphs should show the same latest value while they are visible.

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 a0d6dd2, after #3439 merged. Also reproduces on #3337 at 20f3143.

Possibly related to #3438, but replacing Show with {count() === 0 ? <p>Inside: {latest(count)}</p> : null} avoids this mismatch. Keeping Show mounted with when={true} also makes both values update correctly.

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