I'm facing an issue with manipulating Vue data through an external js file that I've exported a function from. Despite my efforts, I haven't been able to achieve the desired outcome. Here's what I have attempted so far:
My import statement looks like this :
import * as device from "../Device";
The function invocation is done in this manner :
device.playURL(this.currentTVChannelUrl,this.loading,this.isPlayerShown);
This is the playURL method within the device.js file :
export function playURL(url,loading,isPlayerShown){
player.play({
uri: url,
});
loading = false;
isPlayerShown = true;
}
Unfortunately, the manipulative data of my Vue component remains unchanged. Is there a way to resolve this issue?