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
Copy file name to clipboardExpand all lines: 8.3.0/docs/Flow.md/index.html
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,7 @@
37
37
<PROJECT_ROOT>/node_modules/editions # you can still selectively ignore packages that cause flow errors
38
38
[include]
39
39
...</code></pre><h2class="heading___2W8-L" id="props-types">Props Types <ahref="#props-types" class="anchor___j3LpN">#</a></h2><p>This will give you the types of the
40
-
<ahref="https://redux-form.com/8.2.2/docs/api/Props.md/"><code>props</code></a> that will be injected
40
+
<ahref="https://redux-form.com/8.3.0/docs/api/Props.md/"><code>props</code></a> that will be injected
41
41
into your decorated form component by the <code>reduxForm()</code> higher order component.</p>
<h3class="heading___2W8-L" id="-code-fieldprops-code-"><code>FieldProps</code><ahref="#-code-fieldprops-code-" class="anchor___j3LpN">#</a></h3><p>This will give you the shape of the props provided from
61
-
<ahref="https://redux-form.com/8.2.2/docs/api/Field.md/"><code>Field</code></a> to your field
61
+
<ahref="https://redux-form.com/8.3.0/docs/api/Field.md/"><code>Field</code></a> to your field
<h3class="heading___2W8-L" id="-code-fieldsprops-code-"><code>FieldsProps</code><ahref="#-code-fieldsprops-code-" class="anchor___j3LpN">#</a></h3><p>This will give you the shape of the props provided from
79
-
<ahref="https://redux-form.com/8.2.2/docs/api/Fields.md/"><code>Fields</code></a> to your fields
79
+
<ahref="https://redux-form.com/8.3.0/docs/api/Fields.md/"><code>Fields</code></a> to your fields
<h3class="heading___2W8-L" id="-code-fieldarrayprops-code-"><code>FieldArrayProps</code><ahref="#-code-fieldarrayprops-code-" class="anchor___j3LpN">#</a></h3><p>This will give you the shape of the props provided from
101
-
<ahref="https://redux-form.com/8.2.2/docs/api/FieldArray.md/"><code>FieldArray</code></a> to your
101
+
<ahref="https://redux-form.com/8.3.0/docs/api/FieldArray.md/"><code>FieldArray</code></a> to your
<h2class="heading___2W8-L" id="data-flow">Data flow <ahref="#data-flow" class="anchor___j3LpN">#</a></h2><p>The diagram below represents the simplified data flow. Note that in most cases
67
67
you don't need to worry about the
68
-
<ahref="https://redux-form.com/8.2.2/docs/api/ActionCreators.md/">action creators</a> for
68
+
<ahref="https://redux-form.com/8.3.0/docs/api/ActionCreators.md/">action creators</a> for
69
69
yourself, as they're already bound to dispatch for certain actions.</p>
<h3class="heading___2W8-L" id="step-2-of-4-form-component">Step 2 of 4: Form component <ahref="#step-2-of-4-form-component" class="anchor___j3LpN">#</a></h3><p>To make your form component communicate with the store, we need to wrap it with
111
111
<code>reduxForm()</code>. It will provide the props about the form state and function to
<ahref="https://redux-form.com/8.2.2/examples/normalizing/">Normalizing Example</a> and
292
-
<ahref="https://redux-form.com/8.2.2/docs/ValueLifecycle.md/">Value Lifecycle</a> for more
291
+
<ahref="https://redux-form.com/8.3.0/examples/normalizing/">Normalizing Example</a> and
292
+
<ahref="https://redux-form.com/8.3.0/docs/ValueLifecycle.md/">Value Lifecycle</a> for more
293
293
details.</p>
294
294
<h2class="heading___2W8-L" id="listening-to-other-actions">Listening to other actions <ahref="#listening-to-other-actions" class="anchor___j3LpN">#</a></h2><p>The <code>plugin()</code> API is identical to that of <code>v5</code>. However, the internal structure
295
295
of the form state <em>has</em> changed, so your plugin reducer that was modifying it
<h2class="heading___2W8-L" id="props">Props <ahref="#props" class="anchor___j3LpN">#</a></h2><p>The props that <code>Fields</code> will pass to your component are
173
-
<ahref="https://redux-form.com/8.2.2/docs/api/Field.md/#props">the same <code>input</code> and <code>meta</code> structures that <code>Field</code> generates</a>,
173
+
<ahref="https://redux-form.com/8.3.0/docs/api/Field.md/#props">the same <code>input</code> and <code>meta</code> structures that <code>Field</code> generates</a>,
174
174
except that they are broken up into the structure of the fields you gave as
175
175
<code>names</code>.</p>
176
176
<p>Any additional props that you pass to <code>Field</code> will be included at the root of
<h2class="heading___2W8-L" id="parameters">Parameters <ahref="#parameters" class="anchor___j3LpN">#</a></h2><h3class="heading___2W8-L" id="name">name <ahref="#name" class="anchor___j3LpN">#</a></h3><p>The path to the field, exactly like the <code>name</code> parameter of
<h3class="heading___2W8-L" id="options-prop-name-">options: {prop: name, ...} <ahref="#options-prop-name-" class="anchor___j3LpN">#</a></h3><p>If you use the first form with the options object, the keys of the object will
44
44
be the names of the props passed.</p>
45
45
<h3class="heading___2W8-L" id="valuesmapper-props-gt-name-string-props-gt-options-object-lt-string-string-gt-">valuesMapper: (props) => name:String | (props) => options:Object<String, String> <ahref="#valuesmapper-props-gt-name-string-props-gt-options-object-lt-string-string-gt-" class="anchor___j3LpN">#</a></h3><p>A function to map values. Like this you can create the path to the field(s)
0 commit comments