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.

ra-data-fakerest adds new items to ReferenceInput onChange

See original GitHub issue

CodeSnadBox: 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:closed
  • Created 3 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
manishsundriyalcommented, Apr 18, 2020

@WiXSL Thanks for such a quick confirmation. I will fix it.

0reactions
jdemangeoncommented, Sep 17, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

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