docs(Content Script UI): Add additional details about when onRemove is called

This commit is contained in:
Aaron
2025-04-20 21:15:08 -05:00
committed by GitHub
parent 67fa3db921
commit 656a9b365f
@@ -9,6 +9,9 @@ export type ContentScriptUiOptions<TMounted> = ContentScriptPositioningOptions &
/**
* Callback called before the UI is removed from the webpage. Use to cleanup your UI, like
* unmounting your Vue or React apps.
*
* Note that this callback is called only when `ui.remove` is called - that means it is
* not called automatically when the anchor is removed, unless you use `autoMount`.
*/
onRemove?: (mounted: TMounted | undefined) => void;
};