Introduce onDestroy hook

Summary: This diff introduces the `onDestroy` hook that can be used by plugins to listen to the event where a plugin is cleaned up (either because it is disabled, or because the client is being cleaned up)

Reviewed By: jknoxville

Differential Revision: D22208121

fbshipit-source-id: 9c4951ae671be611f21da171c548d4054c481166
This commit is contained in:
Michel Weststrate
2020-07-01 08:58:40 -07:00
committed by Facebook GitHub Bot
parent 04a29315e2
commit ba01fa5bc9
4 changed files with 158 additions and 100 deletions

View File

@@ -8,3 +8,4 @@
*/
export * from './plugin/Plugin';
export * from './plugin/SandyPluginDefinition';