We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a67a0b7 commit 8021604Copy full SHA for 8021604
fluent-react/src/localized.js
@@ -55,12 +55,6 @@ function Localized(props) {
55
const { id, attrs, children: child = null } = props;
56
const { l10n, parseMarkup } = useContext(FluentContext);
57
58
- if (l10n === null) {
59
- throw new Error(
60
- "<Localized/> needs to have a <LocalizationProvider/> up in the tree"
61
- );
62
- }
63
-
64
// Validate that the child element isn't an array
65
if (Array.isArray(child)) {
66
throw new Error("<Localized/> expected to receive a single " +
0 commit comments