Forum Discussion

Figueiredo's avatar
New Contributor
6 years ago

Cleaning up properties after every VirtAction

I find myself writing context.setProperty() statements on my dispatch scripts, so I can dynamically customize my responses. However I noticed that the lifetime of dispatch script goes well beyond the lifetime of a VirtAction call.


How would I go about cleaning up after every VirtAction call? Or is there a more appropriate context I can use to store and manipulate properties with the scope of a VirtAction?