React-admin: record-form is null when I saved (redirect is "edit")

Created on 10 Sep 2018  路  6Comments  路  Source: marmelab/react-admin

<SimpleForm redirect="edit">
...
</SimpleForm>

Issue

When I clicked "save", there is no data in my edit page form
and I checked in reduxDevTools

line_p2018910_134743

Environment

  • React-admin version: 2.2.3
  • Last version that did not exhibit the issue (if applicable): 2.0.2
  • React version: 16.4.0
  • Browser: Chrome
  • Stack trace (in case of a JS error): None
bug

All 6 comments

If you are able to illustrate the bug or feature request with an example, please provide a sample application via one of the following means:

  • CodeSandbox (https://codesandbox.io/s/vvw21793w0)
  • A sample application via GitHub

is this in a Create or in an Edit view?

@fzaninotto // it was in a Edit view, I'm writing a sample.

@djhi
I wrote a sample, you can see the problem there.
It happens when I save without edit anything but if I edited then it works well.
Please check my sample.

I believe this is technically the same issue as in #2291

Probably fixed by #2322

Was this page helpful?
0 / 5 - 0 ratings