You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -2565,11 +2565,7 @@ var startHiddenInputChunk = stringToPrecomputedChunk('<input type="hidden"');
2565
2565
functionpushAdditionalFormField(value,key){
2566
2566
vartarget=this;
2567
2567
target.push(startHiddenInputChunk);
2568
-
2569
-
if(typeofvalue!=='string'){
2570
-
thrownewError('File/Blob fields are not yet supported in progressive forms. '+'It probably means you are closing over binary data or FormData in a Server Action.');
2571
-
}
2572
-
2568
+
validateAdditionalFormField(value);
2573
2569
pushStringAttribute(target,'name',key);
2574
2570
pushStringAttribute(target,'value',value);
2575
2571
target.push(endOfStartTagSelfClosing);
@@ -2582,14 +2578,35 @@ function pushAdditionalFormFields(target, formData) {
2582
2578
}
2583
2579
}
2584
2580
2581
+
functionvalidateAdditionalFormField(value,key){
2582
+
if(typeofvalue!=='string'){
2583
+
thrownewError('File/Blob fields are not yet supported in progressive forms. '+'Will fallback to client hydration.');
2584
+
}
2585
+
}
2586
+
2587
+
functionvalidateAdditionalFormFields(formData){
2588
+
if(formData!=null){
2589
+
// $FlowFixMe[prop-missing]: FormData has forEach.
0 commit comments