Plugin Lifecycle events

You can detect whether or not your plugin panel is visible with the help of UXP APIs

Example

Copied to your clipboard
const entrypoints = require("uxp").entrypoints;
entrypoints.setup({
panels: {
"mainPanel": {
create(rootNode) {
return new Promise(function (resolve, reject) {
console.log('Plugin panel created');
resolve();
});
},
destroy(rootNode) {
return new Promise(function (resolve, reject) {
console.log('Destroy panel');
resolve();
});
}
}
}
});
padmkris123
Was this helpful?