From 2f6faae4641f6e5b5ca43f2789a04bc5e6971a8a Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Wed, 10 Mar 2021 23:13:29 +0100 Subject: [PATCH] todo: avoid routable extension for now Signed-off-by: Patrik Oldsberg --- plugins/todo/src/plugin.ts | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/plugins/todo/src/plugin.ts b/plugins/todo/src/plugin.ts index 535630ba35..6dc06a7c34 100644 --- a/plugins/todo/src/plugin.ts +++ b/plugins/todo/src/plugin.ts @@ -16,13 +16,13 @@ import { createApiFactory, createPlugin, - createRoutableExtension, + createComponentExtension, discoveryApiRef, identityApiRef, } from '@backstage/core'; import { todoApiRef, TodoClient } from './api'; -import { rootRouteRef } from './routes'; +// import { rootRouteRef } from './routes'; export const todoPlugin = createPlugin({ id: 'todo', @@ -39,13 +39,16 @@ export const todoPlugin = createPlugin({ }), ], routes: { - root: rootRouteRef, + // root: rootRouteRef, }, }); export const EntityTodoContent = todoPlugin.provide( - createRoutableExtension({ - component: () => import('./components/TodoList').then(m => m.TodoList), - mountPoint: rootRouteRef, + createComponentExtension({ + component: { + lazy: () => import('./components/TodoList').then(m => m.TodoList), + }, + // TODO(Rugvip): Switch back to routable extension once apps are migrated + // mountPoint: rootRouteRef, }), );