mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Get rid of this.disposers while registering stuff in extensions #1145
Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
1 parent
e9ebd06664
commit
cee4d1ea1f
16 files changed
+91
-82
No files matched your search
@@ -8,16 +8,16 @@ export default class ExampleExtension extends LensRendererExtension {
|
||||
}
|
||||
|
||||
registerClusterPage(registry: Registry.ClusterPageRegistry) {
|
||||
this.disposers.push(
|
||||
registry.add({
|
||||
return [
|
||||
{
|
||||
path: "/extension-example",
|
||||
title: "Example Extension",
|
||||
components: {
|
||||
Page: () => <ExamplePage extension={this} />,
|
||||
MenuIcon: ExampleIcon,
|
||||
}
|
||||
})
|
||||
)
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
onDeactivate() {
|
||||
|
||||
Reference in new issue
Block a user