Hi,
I can not find answer to problem in anywhere, its no possible to work with callback functions. I am using an API and it has event registration functions which takes callback.
In code below there is event register function for the API which takes a callback, neither exported vue method or parameter works in the callback. if I can call a method for it to mutate the state, I think I do not a variable for that et all.
Here is the all steps;
1- first API should be created using imported API
2- should login
3- after login verified (after few seconds) register to an event using myAPI.on with a callback function
so I call addEventListeners for step 3, but the problem is its not working…
Hi, I can not find answer to problem in anywhere, its no possible to work with callback functions. I am using an API and it has event registration functions which takes callback.
In code below there is event register function for the API which takes a callback, neither exported vue method or parameter works in the callback. if I can call a method for it to mutate the state, I think I do not a variable for that et all.
Here is the all steps;
1- first API should be created using imported API 2- should login 3- after login verified (after few seconds) register to an event using myAPI.on with a callback function
so I call addEventListeners for step 3, but the problem is its not working…
This is the problematic code
Here is the all code for the vue file