Hi,
What is your question?
-- Daniel
@Ajay Gupta hallo , did you get this error when refresh dependance or upgrade can you please add more details
Most of the time you vet this error because the user navigates away from a screen or closes the app. If you have this error in the log, but your application works as expectes, you can ignore the error.
Hi @Daniël Kuhlmann yes i am able to see this error in logs in Service center and yes my application works as expected.
As i was seeing this error frequently logged in service center i was curious to know what is this error and why it is getting logged so i posted this here.
I am not using any OnDestroy client action in my screen still it is getting logged in service center so i wanted to know if there is any workaround to avoid this error.
Hello,
If you have a code like this:
setTimeout(function() { $public.Actions.OnDestroy(); // This is incorrect}, 5000);
You should remove this call. Instead, use a global client action for any delayed logic.
Hope this helps.
Hi @Sana Shaikh I dont have any code related to timeout in my screen plus i am not using the screen OnDestroy event as well , still this error is logged in service center.
Hi Ajay,
This error occurs when the user navigates away from a screen. To fix this, you need to clear the interval in the onDestroy event. First, store the interval in a local variable during the onReady event, and then ensure it is cleared in the onDestroy event. I'm attaching the OML file for your reference.