Skip to content

Reactivity issue with computed on array first item #12735

Open
@clemator

Description

Version

3.5.13

Reproduction link

stackblitz.com

Steps to reproduce

Click on the button "Increment first array item" until the first array item object reach 5.

The computed "biggestNumber" is never recomputed, showing 4 instead of 5.

Click once on the second button "Increment second array item". The computed "biggestNumber" is now recomputed and displays 5 as expected.

Click on the first button, this time the computed is always recomputed on each clicks.

Click on the second button until it's value is superior to the first array item. Then click on the first one, it loses reactivity again.

This only happens to the first array item, redo steps with the first button and third or first and fourth.

What is expected?

The computed should react to changes on the first array item.

What is actually happening?

The first item never triggers computed reactivity until other array items changes.


Thank you for your work, love Vue <3

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