What is the correct way (or differences if both are correct) for updating a $orderItems = writable([])
Svelte writable array store? We'll assume result
is a new item I want to push at the end of $orderItems
.
orderItems.update(items => ([...items, result]))
or
$orderItems = [...$orderItems, result]