Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CustomApp not working anymore? #111

Closed
carlson opened this issue Oct 27, 2016 · 3 comments
Closed

CustomApp not working anymore? #111

carlson opened this issue Oct 27, 2016 · 3 comments
Assignees
Labels

Comments

@carlson
Copy link

carlson commented Oct 27, 2016

I followed the CustomApp instructions with version 0.3.1 and everything worked fine.
After updating to 0.4.0 (same code) the Edit form doesn't display data or changes to input fields.

screen shot 2016-10-27 at 6 36 38 pm

Switch back to the previous version and everything works fine:

screen shot 2016-10-27 at 6 35 59 pm

Note: did a test with the Tutorial (non-custom app) and everything works as expected. Did I miss a requirement moving from 0.3.1 to 0.4.0?

ArnaudD pushed a commit to fizix-io/react-admin that referenced this issue Oct 28, 2016
@ArnaudD
Copy link
Contributor

ArnaudD commented Oct 28, 2016

Hi @carlson, You now need to include redux-form in your reducers like this :

import { routerReducer } from 'react-router-redux';
import { adminReducer } from 'admin-on-rest';
import { reducer as formReducer } from 'redux-form';

export default combineReducers({
  routing: routerReducer,
  form: formReducer,
  admin: adminReducer([{ name: 'resource1' }, { name:  'resource2' }]),
});

@carlson
Copy link
Author

carlson commented Oct 28, 2016

Thanks for your help @ArnaudD, that fixed it. Great project.

@fzaninotto
Copy link
Member

Reopening, since the doc must be updated.

@fzaninotto fzaninotto self-assigned this Nov 1, 2016
@fzaninotto fzaninotto reopened this Nov 1, 2016
@fzaninotto fzaninotto added the bug label Nov 1, 2016
@djhi djhi closed this as completed in #116 Nov 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants