usePluginContext returns the full PluginUIContext object that the shell injects into every plugin’s React tree via PluginShellProvider. It is the foundational hook — all other shell utility hooks (useShellAuth, useShellToast, etc.) call it internally.
Import
Signature
PluginShellProvider.
Return value
PluginNavigationHelper
PluginToastAPI
PluginLogger
Usage
Notes
- Prefer the focused utility hooks (
useShellAuth,useShellToast, etc.) over reaching into the context object directly. They are more readable and produce narrower re-render subscriptions. - The
socketfield on the context is a low-level proxy. For high-frequency simulator data, useuseSimDataoruseSocketinstead.