Skip to content

Commit

Permalink
[Eui] Throw error if Eui Provider is Missing
Browse files Browse the repository at this point in the history
  • Loading branch information
tsullivan committed Apr 16, 2024
1 parent 12c73af commit 72b6c84
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { FormattedMessage } from '@kbn/i18n-react';
import { BehaviorSubject, combineLatest, merge, type Observable, of, ReplaySubject } from 'rxjs';
import { mergeMap, map, takeUntil, filter } from 'rxjs';
import { parse } from 'url';
import { EuiLink } from '@elastic/eui';
import { EuiLink, setEuiDevProviderWarning } from '@elastic/eui';
import useObservable from 'react-use/lib/useObservable';

import type { CoreContext } from '@kbn/core-base-browser-internal';
Expand Down Expand Up @@ -187,6 +187,8 @@ export class ChromeService {
this.initVisibility(application);
this.handleEuiFullScreenChanges();

setEuiDevProviderWarning('error');

const globalHelpExtensionMenuLinks$ = new BehaviorSubject<ChromeGlobalHelpExtensionMenuLink[]>(
[]
);
Expand Down

0 comments on commit 72b6c84

Please sign in to comment.