We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What you were expecting:
See this example: https://marmelab.com/react-admin/doc/4.0/Upgrade.html#list-views
import { useGetList, Record } from 'react-admin';
I expected the Record type to exist. Note: It did exist in v3. I could do import { Record } from 'ra-core';.
Record
import { Record } from 'ra-core';
What happened instead:
generates this error: '"react-admin"' has no exported member named 'Record'
'"react-admin"' has no exported member named 'Record'
I am pretty sure the type should be RaRecord, according to the code here:
RaRecord
react-admin/packages/ra-core/src/types.ts
Lines 12 to 15 in 953716c
Environment
The text was updated successfully, but these errors were encountered:
Thanks for reporting this!
You must use RaRecord instead of Record. This is also explained in the upgrade guide https://marmelab.com/react-admin/doc/4.0/Upgrade.html#record-was-renamed-to-rarecord
Sorry, something went wrong.
Update ListViews example to use RaRecord type
3742c14
Fixes marmelab#7560
Successfully merging a pull request may close this issue.
What you were expecting:
See this example: https://marmelab.com/react-admin/doc/4.0/Upgrade.html#list-views
I expected the
Record
type to exist. Note: It did exist in v3. I could doimport { Record } from 'ra-core';
.What happened instead:
generates this error:
'"react-admin"' has no exported member named 'Record'
I am pretty sure the type should be
RaRecord
, according to the code here:react-admin/packages/ra-core/src/types.ts
Lines 12 to 15 in 953716c
Environment
'"react-admin"' has no exported member named 'Record'
The text was updated successfully, but these errors were encountered: