From adcc8ccd5ffd3bb96919e8f97d4b8e39018ecf68 Mon Sep 17 00:00:00 2001 From: fzaninotto Date: Tue, 29 Jan 2019 16:06:39 +0100 Subject: [PATCH] Fix missing export preventing custom app Closes #2302 Supersedes #2696 --- docs/CustomApp.md | 5 +++-- packages/ra-core/src/form/index.js | 2 ++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/CustomApp.md b/docs/CustomApp.md index 883f9b57e5..e4845e19e8 100644 --- a/docs/CustomApp.md +++ b/docs/CustomApp.md @@ -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 { diff --git a/packages/ra-core/src/form/index.js b/packages/ra-core/src/form/index.js index b71f0a9b45..2f36703da7 100644 --- a/packages/ra-core/src/form/index.js +++ b/packages/ra-core/src/form/index.js @@ -1,6 +1,7 @@ import addField from './addField'; import FormDataConsumer from './FormDataConsumer'; import FormField from './FormField'; +import formMiddleware from './formMiddleware'; import getDefaultValues from './getDefaultValues'; import withDefaultValue from './withDefaultValue'; @@ -8,6 +9,7 @@ export { addField, FormDataConsumer, FormField, + formMiddleware, getDefaultValues, withDefaultValue, };