question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue
<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

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
fzaninottocommented, Sep 19, 2018

Probably fixed by #2322

1reaction
MuMu-krcommented, Sep 11, 2018

@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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Lightning record edit form is not going to detail page after ...
The default behaviour is , does nothing on save, you will have to retrieve the Id of the record from the response object...
Read more >
UI action to redirect to new record form but not insert
Solved: Hi, Currently my UI action creates a new Outage record, but it relies on data been populated on the change form.
Read more >
Lightning:RecordEditForm - Set values to null after form ...
I have a Lightning:RecordEditForm that creates a record after the form has been submitted. Once the form has been saved, I require the...
Read more >
Lightning:RecordForm : A Powerful component
lightning:recordForm usages Lightning Data Service and enable us to create record, edit record or view the record without additional Apex.
Read more >
Discussion - Quickbase Community - Higher Logic
Automatically save a form page as PDF and insert into attachment field? ... URL button to run import, edit record and then redirect,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found