Skip to content

2.0.0-rc.8 latest stops updating after intermediate write restores the initial value #3377

Description

@GabbeV

Describe the bug

An action sets a signal to 2, back to 0, then to 2 again. A combined expression reading latest(count) and an async memo derived from it stays at 0 / 0, even after the action and all async work finish.

Your Example Website or App

https://s.olid.uk/id/uyKDwlKMSai1F0-BofC7DA

Steps to Reproduce the Bug or Issue

  1. Wait for 0 / 0.
  2. Click the button.
  3. Wait a few seconds. It remains 0 / 0.

Expected behavior

The expression eventually shows 2 / 2.

Screenshots or Videos

No response

Platform

  • OS: Windows
  • Browser: Firefox

Additional context

Removing the direct latest(count) read from the expression lets the async memo display 2 correctly. Replacing both uses of latest(count) with count() also works.

Reproduced against next at 344ed05 and #3337 at 20f3143.

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