最近搜索


没有最近搜索

Seen "setTimeout" but not "app.willDestroy". I couldn't find an event called willDestroy in the ZAF documentation.

已回答


已于 2021年8月05日 发布

I'm seeing some warnings when I try to publish a Support application, and one of those errors is the following:

JS: App Willdestroy - Seen "setTimeout" but not "app.willDestroy"

Based on that warning, I assume it's good practice to have something that clears up setTImeout and I guess that thing is an willDestroy event. The problem is that I scoured through the documentation and couldn't find anything related to willDestroy so I'm kind of clueless how to prevent this warning.

Thanks for taking the time to read this, and I'd greatly appreciate any help.


0

3

3 条评论

image avatar

Eric Nelson

Zendesk Developer Advocacy

Hey there,

Just to confirm, are you wondering how to implement willDestroy or are you just wondering how to prevent the error?

Thanks!

Have a wonderful day!

Eric Nelson | Manager - Developer Advocacy

0


From what I understand willDestroy is decrepitated and doesn't exist in ZAF V2 right? This is why I'm confused as to why am I getting the warning and how to prevent it.

0


image avatar

Eric Nelson

Zendesk Developer Advocacy

Hey Bozhidar,

Thanks for the clarification, you're right that willDestroy was deprecated in v1. It seems that this is a legacy error in one of our libraries. I'm working on tracking down the culprit. Are you using ZAT to publish your app or the ZCLI?

Have a wonderful day!

Eric Nelson | Manager - Developer Advocacy

0


帖子评论已关闭。

找不到所需的内容?

新建帖子