Add Event hooks to Plugins #3692
Unanswered
CEbbinghaus
asked this question in
Ideas
Replies: 3 comments
|
Are there specific events you have in mind in the application that you'd like to capture that are not redux actions? |
0 replies
well I specified a few in the description but some I would like to see are Plugin Events:
Insomnia Events:
|
0 replies
|
Wow great! That's a very very helpful and clear list. cc: @wdawson |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Is your feature request related to a problem? Please describe.
There aren't any ways to initialize plugins. Reading Settings and other tasks have to be done in the actions that they are relevant for.
Describe the solution you'd like
Methods to handle LifeCycle hooks of the Plugin such as
OnLoad,OnUnload,OnReload...etc, as well as event callbacks of the Application which could include:OnWorkspaceOpenor more granular events:OnDocumentOpen,OnCollectionOpenDescribe alternatives you've considered
Running code when the file is executed is easy and certainly possible but it lacks access to the Insomnia plugin context. e.g no saving to the store to read later or alerting the user to changes in a new version.
Additional context
Related to #2599 which would be another useful hook
All reactions