Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/hydro-dev/Hydro
/ installPlugin
Function
installPlugin
packages/ui-next/src/registry/plugin.ts:28–32 ·
view source on GitHub ↗
(plugin: PluginDefinition)
Source
from the content-addressed store, hash-verified
26
}
27
28
export
function
installPlugin(plugin: PluginDefinition): () => void {
29
const
api = createPluginAPI();
30
const
cleanup = plugin.setup(api);
31
return
() => cleanup?.();
32
}
Callers
1
loadPlugins
Function · 0.90
Calls
1
createPluginAPI
Function · 0.85
Tested by
no test coverage detected