How to keep the reactivity of data when passing it into a function? Suppose my component looks like this: