I am facing an issue in my vuejs application with 2 methods. When I define method1 a certain way, it does not run as expected.
method1: function(param1, param2){
// I can log param1 here
thirdLib.debounce(function(param1, params2){
// It does not execute this block of code
// Do something
}, 100)
},
method2: function(){
this.method1(param1, param2);
}
However, when I modify method1 like this, it functions smoothly:
method1: thirdLib.debounce(function(param1, params2){
// Do something
}, 100)
I am perplexed by why this happens. If I wish to retain the structure of method1 from the original version, how can I achieve that? My current vue version is 3.8.2