1234567891011121314151617181920212223242526272829 |
- import DeprecatedAsyncComponent from 'sentry/components/deprecatedAsyncComponent';
- import SentryDocumentTitle from 'sentry/components/sentryDocumentTitle';
- export type AsyncViewState = DeprecatedAsyncComponent['state'];
- export type AsyncViewProps = DeprecatedAsyncComponent['props'];
- /**
- * @deprecated use useApiQuery instead.
- *
- * Read the dev docs page on network requests for more information [1].
- *
- * [1]: https://develop.sentry.dev/frontend/network-requests/
- */
- export default class DeprecatedAsyncView<
- P extends AsyncViewProps = AsyncViewProps,
- S extends AsyncViewState = AsyncViewState
- > extends DeprecatedAsyncComponent<P, S> {
- getTitle() {
- return '';
- }
- render() {
- return (
- <SentryDocumentTitle title={this.getTitle()}>
- {this.renderComponent() as React.ReactChild}
- </SentryDocumentTitle>
- );
- }
- }
|