MCPcopy Index your code
hub / github.com/formatjs/formatjs / invariantIntlContext

Function invariantIntlContext

packages/react-intl/utils.tsx:17–23  ·  view source on GitHub ↗
(intl?: any)

Source from the content-addressed store, hash-verified

15}
16
17export function invariantIntlContext(intl?: any): asserts intl {
18 invariant(
19 intl,
20 '[React Intl] Could not find required `intl` object. ' +
21 '<IntlProvider> needs to exist in the component ancestry.'
22 )
23}
24
25export type DefaultIntlConfig = Pick<
26 ResolvedIntlConfig,

Callers 2

IntlProviderImplFunction · 0.85
useIntlFunction · 0.85

Calls 1

invariantFunction · 0.70

Tested by

no test coverage detected