ra-data-fakerest adds new items to ReferenceInput onChange
See original GitHub issueCodeSnadBox: https://codesandbox.io/s/react-admin-referenceinput-example-x290t?file=/src/index.js
Steps to reproduce:
1.- Go to Posts and Edit any record
(NOTE: Title will change since it has the same source, I don’t know if this is intended behaviour).
2.- Type number one (1) on Post input
3.- Click on Title ReferenceInput
You get duplicate items and a console error.
PS: This doesn’t happen using ra-data-json-server as data provider in the same example.
Environment react-admin version: 3.4.0 react version: 16.13.1 ra-data-fakerest: v3.2.2 Browser: Chrome v81
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Cant access the full selected data on ReferenceInput #5105
Reference input makes the "get many" request to get details of selected item when an item is selected. but only the id is...
Read more >How can i read data from ReferenceInput in React admin?
When I use the referencinput, it sends a request to the server, is it possible to somehow read what I received from the...
Read more >Input Components - React-admin
React-admin adds functionality to react-hook-form: handling of custom event emitters like onChange ,; support for an array of validators, ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@WiXSL Thanks for such a quick confirmation. I will fix it.
Changing the current record id from
<Edit />is not a common use case and should not involve more time on debug. I’m closing the issue.