MonacoQueryFieldLazy.tsx 347 B

12345678910111213
  1. import React, { Suspense } from 'react';
  2. import { Props } from './MonacoQueryFieldProps';
  3. const Field = React.lazy(() => import(/* webpackChunkName: "prom-query-field" */ './MonacoQueryField'));
  4. export const MonacoQueryFieldLazy = (props: Props) => {
  5. return (
  6. <Suspense fallback={null}>
  7. <Field {...props} />
  8. </Suspense>
  9. );
  10. };