Recent searches
No recent searches

Rebecca Dai
Joined Apr 15, 2021
·
Last activity Nov 11, 2021
Following
0
Followers
0
Total activity
10
Votes
3
Subscriptions
3
ACTIVITY OVERVIEW
BADGES
ARTICLES
POSTS
COMMUNITY COMMENTS
ARTICLE COMMENTS
ACTIVITY OVERVIEW
Latest activity by Rebecca Dai
Rebecca Dai commented,
Sounds good Eric Nelson, I went ahead and proceeded to create a ticket to further the conversation.
View comment · Posted Nov 11, 2021 · Rebecca Dai
0
Followers
0
Votes
0
Comments
Rebecca Dai commented,
Thanks for taking the time to respond! My understanding is that when
ticketSidebar.instance(modal.instanceGuid)
is called, a new instanceClient is added to the ticketSidebar client. So every time a new modal is opened, the instanceClient object grows larger if not properly removed.
While looking at the ZAF client API docs, the only clean up relating to removing the instance of the modal is through calling destroy. However, as mentioned in a previous comment, invoking it manually doesn't seem to remove the obsolete instanceClients on the ticketSidebar client. Is there an idiomatic way to achieve this? Or perhaps areas on the doc that you can point me to?
View comment · Edited Nov 04, 2021 · Rebecca Dai
0
Followers
0
Votes
0
Comments
Rebecca Dai commented,
Hey Eric Nelson,
Sorry I didn't see your response until now!
Yes, presently it is the only place where I'm manually triggering modal destroy. However, I believe destroy should've been called under the hood when the x button on the modal is clicked. Let me know if that assumption is incorrect.
Previously, I have tried invoking the destroy when the 'modal.close' event is called in modal creation (here) and also in the modal instance itself (here). I observe the same error with and without these code there. Please let me know if I didn't set up correctly. Thanks!
View comment · Posted Oct 07, 2021 · Rebecca Dai
0
Followers
0
Votes
0
Comments
Rebecca Dai commented,
I ran into the same issue. I was able to create a modal and populate it with the desired content. However, after I close the current modal and open a new modal, a yellow dot appears in the app. Hovering over the dot, as well as observing the browser console, I will see the error "Cannot access instance [guid of previous modal]".
I think the instance of the modal should've been destroyed on modal closing however it seems as though there is vendor javascript that's trying to access the same modal guid and returning undefined (possibly related to rollbar?) I'm not sure how to resolve it.
Here's some code snippets for how I set up the modal:
https://github.com/rdai10/zendesk/blob/master/knowledge-capture-app/src/javascript/modules/SearchResults.js#L54-L78
Any feedback would be welcome, thanks!
View comment · Posted Sep 16, 2021 · Rebecca Dai
0
Followers
1
Vote
0
Comments