@shopify/app-bridge-host
Version:
App Bridge Host contains components and middleware to be consumed by the app's host, as well as the host itself. The middleware and `Frame` component are responsible for facilitating communication between the client and host, and used to act on actions se
16 lines (15 loc) • 590 B
TypeScript
import { Performance as PerformanceActions } from '@shopify/app-bridge-core/actions';
import { PerformanceDetails } from '../features/performance';
export interface MetricsPayload {
appId: string;
shopId: string;
appLoadType: PerformanceActions.Action;
isFullPageNavigation: boolean;
loadTime: number;
handleOrKey?: any;
}
export interface Props {
initialLoadState: PerformanceDetails | null;
dispatchPerformanceMetrics: (metrics: MetricsPayload) => void;
}
export default function Performance({ initialLoadState, dispatchPerformanceMetrics }: Props): null;