Get rid of this.disposers while registering stuff in extensions #1145

Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
Roman committed 2020-10-26 17:59:24 +02:00
1 parent e9ebd06664
commit cee4d1ea1f
16 files changed
+91 -82

No files matched your search

+4 -4
View File
@@ -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() {