Skip to content

Commit

Permalink
Merge pull request #2828 from marmelab/custom-app-form-middleware
Browse files Browse the repository at this point in the history
[RFR] Fix missing export preventing custom app to work
  • Loading branch information
Gildas Garcia authored Jan 29, 2019
2 parents 4b51e9c + adcc8cc commit 92ac757
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/CustomApp.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ Here is the default store creation for react-admin:

```js
// in src/createAdminStore.js
import { combineReducers, createStore, compose, applyMiddleware } from 'redux';
import { routerMiddleware } from 'react-router-redux';
import { applyMiddleware, combineReducers, compose, createStore } from 'redux';
import { routerMiddleware, routerReducer } from 'react-router-redux';
import { reducer as formReducer } from 'redux-form';
import createSagaMiddleware from 'redux-saga';
import { all, fork } from 'redux-saga/effects';
import {
Expand Down
2 changes: 2 additions & 0 deletions packages/ra-core/src/form/index.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
import addField from './addField';
import FormDataConsumer from './FormDataConsumer';
import FormField from './FormField';
import formMiddleware from './formMiddleware';
import getDefaultValues from './getDefaultValues';
import withDefaultValue from './withDefaultValue';

export {
addField,
FormDataConsumer,
FormField,
formMiddleware,
getDefaultValues,
withDefaultValue,
};
Expand Down

0 comments on commit 92ac757

Please sign in to comment.