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.

GET_MANY_REFERENCE not saving data to store

See original GitHub issue

I’ve just started with admin-on-rest, and have been trying to get a <ReferenceManyField> to work with a Datagrid on an Edit form - from what I can see my restClient is returning the right format of {data: [{Resource}]}, but looking in Redux Devtools when the CRUD_GET_MANY_REFERENCE_SUCCESS action is fired, the references in admin.references.oneToMany are being updated to the store, but the payload itself isn’t being added to admin.[resource].data.

Any ideas?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
fzaninottocommented, Mar 20, 2017

My bad, I misunderstood you. You’re right, it’s a bug.

0reactions
bslingercommented, Mar 30, 2017

Ah, that was the issue, I didn’t have the <Resource name="hosts" />! Thanks a lot for your help 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

React Admin <ReferenceManyField> component is calling ...
Referencing this resource in <ReferenceManyField> , it should call the getManyReference method from the dataProvider but it calls the getList .
Read more >
Writing A Data Provider - React-admin - Marmelab
In such cases, you'll have to write your own Data Provider. ... getManyReference, Read a list of resources related to another one, {...
Read more >
Simple REST Data Provider For React-Admin - npm
Start using ra-data-simple-rest in your project by running `npm i ... npm install --save ra-data-simple-rest ... getManyReference, GET ...
Read more >
React admin dashboard tutorial | Retool
To start, react-admin gives us data providers that can be used to backwards ... Get rid of the id and username field to...
Read more >
promitheus/ra-data-postgrest - NPM Package Overview
Installation. npm install --save @promitheus/ra-data-postgrest ... getManyReference, GET http://my.api.url/posts?author_id=eq.345.
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