Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

986 B
Raw Blame
const DataAppRouter: ({ children }: DataAppRouterProps) => JSX.Element;

Wrap your data-app tree once. Inside, use <DataAppLink to="…"> for navigation and useDataAppLocation() to read the current path.

No basename prop: it is auto-detected from the iframe URL (/embed/apps/<name>). In the dev preview, where there is no prefix, the basename resolves to "" and the sub-path is just the raw pathname.

Parameters

Parameter Type
{ children } DataAppRouterProps

Returns

JSX.Element