466 if (onHeaders && typeof maxHeadersLength === 'number') {
467 if (maxHeadersLength <= 0) {
468▶ console.error(
469 'React expected a positive non-zero `maxHeadersLength` option but found %s instead. When using the `onHeaders` option you may supply an optional `maxHeadersLength` option as well however, when setting this value to zero or less no headers will be captured.',
470 maxHeadersLength === 0 ? 'zero' : maxHeadersLength,
· · ·
1203): void {
1204 if (typeof style !== 'object') {
1205▶ throw new Error(
1206 'The `style` prop expects a mapping from style properties to values, ' +
1207 "not a string. For example, style={{marginRight: spacing + 'em'}} when " +
· · ·
1323 escapeTextForBrowser(
1324 // eslint-disable-next-line no-script-url
1325▶ "javascript:throw new Error('React form unexpectedly submitted.')",
1326 ),
1327);
· · ·
1354function validateAdditionalFormField(value: string | File, key: string): void {
1355 if (typeof value !== 'string') {
1356▶ throw new Error(
1357 'File/Blob fields are not yet supported in progressive forms. ' +
1358 'Will fallback to client hydration.',
· · ·
1391 // work there.
1392 if (__DEV__) {
1393▶ // TODO: Should this be some kind of recoverable error?
1394 console.error(
1395 'Failed to serialize an action for progressive enhancement:\n%s',
+ 137 more matches in this file