Skip to content

Commit

Permalink
Merge pull request #3820 from marmelab/fix-default-i18n-provider-export
Browse files Browse the repository at this point in the history
Fix defaultI18nProvider Export
  • Loading branch information
fzaninotto authored Oct 14, 2019
2 parents 90034e4 + 4a0811c commit 66a16cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/CustomApp.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Fortunately, the `<Admin>` component detects when it's used inside an existing R

Beware that you need to know about [redux](http://redux.js.org/), [react-router](https://github.com/reactjs/react-router), and [redux-saga](https://github.com/yelouafi/redux-saga) to go further.

React-admin requires that the redux state contains at least 3 reducers: `admin`, `i18n` and `router`. You can add more, or replace some of them with your own, but you can't remove or rename them. As it relies on `connected-react-router` and `redux-saga`, react-admin also expects the store to use their middlewares.
React-admin requires that the redux state contains at least 2 reducers: `admin` and `router`. You can add more, or replace some of them with your own, but you can't remove or rename them. As it relies on `connected-react-router` and `redux-saga`, react-admin also expects the store to use their middlewares.

Here is the default store creation for react-admin:

Expand Down
3 changes: 2 additions & 1 deletion packages/react-admin/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import Admin from './Admin';
import AdminRouter from './AdminRouter';
import defaultI18nProvider from './defaultI18nProvider';

export * from 'ra-core';
export * from 'ra-ui-materialui';
export { Admin, AdminRouter };
export { Admin, AdminRouter, defaultI18nProvider };

0 comments on commit 66a16cb

Please sign in to comment.