I have an array plan
defined using store state management as follows:
import { reactive } from 'vue'
export const store = reactive({
plan: []
})
I want to reset this array before filling it again, I have tried:
import { store } from "./store.js";
store.plan = [];
store.plan = newPlan; // store.plan is accumulated here without reset!
Can you please tell me how can I reset this reactive array before assigning the new array to it?