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
The type declaration for the initialize action creator is inconsistent with the documentation. In particular, note that the documentation makes the keepDirty and options arguments optional whereas the type declaration makes all 4 arguments required.
I will be happy to submit a PR, but just wanted to check that the documentation is considered canonical and the type should be updated to match, right?
What is the current behavior?
59: dispatch(initialize('feePurchase', { ...defaults, fees }));
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function call. Called with too few arguments
v
150: (
151: form: string,
152: values: Object,
...:
155: ): InitializeAction
------------------^ function type expects more arguments. See: node_modules/redux-form/lib/actions.types.js.flow:150
What is the expected behavior?
No errors!
What's your environment?
redux-form: 7.1.2 (the type definition has not yet changed in master)
flow: 0.59.0
Bug
The type declaration for the
initialize
action creator is inconsistent with the documentation. In particular, note that the documentation makes thekeepDirty
andoptions
arguments optional whereas the type declaration makes all 4 arguments required.I will be happy to submit a PR, but just wanted to check that the documentation is considered canonical and the type should be updated to match, right?
What is the current behavior?
What is the expected behavior?
No errors!
What's your environment?
redux-form: 7.1.2 (the type definition has not yet changed in master)
flow: 0.59.0
Other information
#3444 might be related.
The text was updated successfully, but these errors were encountered: