nuxt.com icon indicating copy to clipboard operation
nuxt.com copied to clipboard

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

Open daisnkzy opened this issue 1 year ago • 1 comments

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

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

daisnkzy avatar Aug 30 '24 13:08 daisnkzy

Thanks for your reminder, the example has been updated https://github.com/nuxt/nuxt/pull/30570

Mini-ghost avatar Mar 21 '25 19:03 Mini-ghost