i try change default route from / to /worklist here platform/viewer/src/routes/index.js
// TODO: Make these configurable
// TODO: Include "routes" debug route if dev build
const bakedInRoutes = [
//my new enter point
{
path: '/',
children: Landing,
},
// WORK LIST in new url /worklist
{
path: '/worklist',
children: DataSourceWrapper,
private: false,
props: { children: WorkList },
},
{
path: '/local',
children: Local,
},
// NOT FOUND (404)
{ component: NotFound },
];
but in browser i see error
react-dom.development.js:67 Warning: Can’t perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in a useEffect cleanup function.
at DataSourceWrapper (file:////Users/dmitrijfomin/web/dicom-annotator/platform/viewer/src/routes/DataSourceWrapper.jsx:59:30)
at ErrorBoundary (file:////Users/dmitrijfomin/web/dicom-annotator/node_modules/react-error-boundary/dist/react-error-boundary.umd.js:71:37)
at ErrorBoundary (file:////Users/dmitrijfomin/web/dicom-annotator/platform/ui/src/components/ErrorBoundary/ErrorBoundary.jsx:76:23)
at RouteWithErrorBoundary (file:////Users/dmitrijfomin/web/dicom-annotator/platform/viewer/src/routes/index.js:91:23)
at D (file:////Users/dmitrijfomin/web/dicom-annotator/platform/viewer/node_modules/react-router/index.js:35:685)
please help me