The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:
TypeScript analyticsbibusiness-intelligencebusinessintelligenceclojuredashboarddatadata-analysisdata-visualizationdatabasemetabasemysqlpostgrespostgresqlreportingslacksql-editorvisualization
import { Route } from "metabase/router";
/**
* This page registers no prefetch, unlike the other pages that were split.
*
* `registerPagePrefetch` takes a fixed path prefix and matches it against the
* start of a hovered link's target. What names this page is the `edit` segment,
* and it comes after two ids that differ per table, so no fixed prefix reaches
* it. The longest one available stops at `databases`, which every browse
* database link also starts with. Registering that would fetch this chunk on
* hover of links that do not lead here.
*/
const editTableDataPage = () =>
import(
/* webpackChunkName: "table-editing" */ "./table-edit/EditTableDataContainer"
).then(({ EditTableDataContainer }) => ({
Component: EditTableDataContainer,
}));
export function getRoutes() {
return (
<Route
path="databases/:dbId/tables/:tableId/edit/:objectId?"
lazy={editTableDataPage}
/>
);
}