Skip to content

Docs (useNuxtData => #Optimistic Updates).Incorrect Use of Reference Assignment in previousTodos.value = todos.value #1653

Open
@daisnkzy

Description

@daisnkzy

i think the example code should use
`// Current implementation
previousTodos.value = todos.value;

// Proposed change
previousTodos.value = [...todos.value];`

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