-
-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
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
extraInformation is undefined #555
Comments
Can you dump content of admin/src/hydra/dataProvider.ts Line 355 in 0d173f5
It seems that it should be declared in this way (?):
|
Sure. {
"id": "/api/deals/7631"
"meta": undefined
"data": {
// very long object
},
"previousData": {
// very long object
}
} And I think, you are right w/ this part: |
Yes, I can confirm that, if I change this line, the problem seems solved. |
Thanks. While waiting for fixed version passing empty object as meta prop should make it work without downgrade. |
Sadly, (if I try it well) it does not work here const [create] = useCreate(undefined, undefined, {
meta: {},
onSuccess: data => {
// do sg
},
}); nor here 😞 create('partner_accounts', {
data: {
// big object
},
}, { meta: {} }); Meanwhile the forms are OK, w/ this workarond <Edit mutationOptions={{ meta: {} }}> |
Yes, this is what I wrote about. |
Btw, I found another workaround. I replace the file w/ the webpack Encore. I added this line to the config and changed that line you mentioned. (Actually I copied the lines from the PR.) const webpack = require('webpack');
Encore
.addPlugin(
new webpack.NormalModuleReplacementPlugin(
/@api-platform\/admin\/lib\/hydra\/dataProvider.js/,
'../../../../../assets/js/moduleOverrides/dataProvider.js',
),
)
; |
|
Is there any permanent solution to this problem? I experience the same thing. i just use data provider directly with ra admin. i meantime i solved it with following code change:
|
Waiting for a release... In meantime need to inline the dp I guess? |
API Platform version(s) affected: 3.2
Description
I got
TypeError: extraInformation is undefined
for every built-in queries that modifies something. (i.e. POST, PUT)How to reproduce
If I have these versions:
And you create a request i.e.
I got this error:
Possible Solution
Downgrade (?)
Additional Context
Before this, I got these versions w/o any error...
The text was updated successfully, but these errors were encountered: