Skip to content

Commit

Permalink
NEW Adding an extension point to FormBuilderLoader after redux form i…
Browse files Browse the repository at this point in the history
…s initialised
  • Loading branch information
raissanorth committed Oct 9, 2018
1 parent cba5d30 commit 0be4a9a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion client/dist/js/bundle.js

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions client/src/containers/FormBuilderLoader/FormBuilderLoader.js
Expand Up @@ -340,6 +340,10 @@ class FormBuilderLoader extends Component {
{ keepSubmitSucceeded: true }
);

if (typeof this.props.onReduxFormInit === 'function') {
this.props.onReduxFormInit();
}

return overriddenSchema;
}
return formSchema;
Expand Down Expand Up @@ -438,6 +442,7 @@ FormBuilderLoader.propTypes = Object.assign({}, basePropTypes, {
form: PropTypes.string,
submitting: PropTypes.bool,
onFetchingSchema: PropTypes.func,
onReduxFormInit: PropTypes.func,
loadingComponent: PropTypes.oneOfType([PropTypes.func, PropTypes.node]).isRequired,
});

Expand Down

0 comments on commit 0be4a9a

Please sign in to comment.