I have an array of objects, in my code I list out these
{#each advances as tech}
<Advance tech={tech} addToCart={addToCart}/>
{/each}
The add to cart function updates a variable on the object:
const addToCart = (tech) => {
tech.Cart = true;
}
This does not trigger reactivity, how should I do this?