Skip to content

Commit

Permalink
Merge branch 'main' of github.com:elastic/kibana into more-fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
madirey committed Apr 11, 2022
2 parents f67e789 + 0f7179a commit 501f0f9
Show file tree
Hide file tree
Showing 44 changed files with 1,869 additions and 53 deletions.
17 changes: 17 additions & 0 deletions packages/kbn-shared-ux-components/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,23 @@ export const LazyIconButtonGroup = React.lazy(() =>
*/
export const IconButtonGroup = withSuspense(LazyIconButtonGroup);

/**
* The lazily loaded `KibanaPageTemplate` component that is wrapped by the `withSuspense` HOC. Consumers should use
* `React.Suspense` or `withSuspense` HOC to load this component.
*/
export const KibanaPageTemplateLazy = React.lazy(() =>
import('./page_template').then(({ KibanaPageTemplate }) => ({
default: KibanaPageTemplate,
}))
);

/**
* A `KibanaPageTemplate` component that is wrapped by the `withSuspense` HOC. This component can
* be used directly by consumers and will load the `KibanaPageTemplateLazy` component lazily with
* a predefined fallback and error boundary.
*/
export const KibanaPageTemplate = withSuspense(KibanaPageTemplateLazy);

/**
* The lazily loaded `KibanaPageTemplateSolutionNav` component that is wrapped by the `withSuspense` HOC. Consumers should use
* `React.Suspense` or `withSuspense` HOC to load this component.
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 501f0f9

Please sign in to comment.