@shopify/app-bridge-react
Version:
**[Join our team and work on libraries like this one.](https://www.shopify.ca/careers)**
22 lines (21 loc) • 578 B
TypeScript
import React from 'react';
import { Unsubscribe } from '@shopify/app-bridge';
import { History } from './router';
export interface Props {
history: History;
}
/**
* ClientRouter component
*
* @remarks
* React component which keeps the Shopify admin url in sync with the app url
*
* @public
*/
export default class ClientRouter extends React.Component<Props, never> {
static contextType: React.Context<import("../../context").IAppBridgeContext>;
unsubscribe?: Unsubscribe;
componentDidMount(): void;
componentWillUnmount(): void;
render(): null;
}