Hi, I want to ask about transformProps. It is causing error like in the image
Warning: Defining props on `root` is deprecated. Please use `root.props`, or republish this page to migrate automatically.
Right now, if I have transformProps for root like this
root: (props) => {
console.log("Transforming", props)
const a = (
{
...props,
root: {
...rootDefaultValue, ...props.root,
hehe: "hoho",
}
}
)
return a;
},
And it produces root data like so
{
"root": {
"root": {
"hehe": "hoho",
},
"props": {
"root": {
"hehe": "hoho",
}
}
},
"content": [],
"zones": {}
}
I think the transformProps transforming data both inside and outside "props" field. And it causes that error because defining props on "root" is deprecated.
If after getting that data, I execute "migrate" function, it then works fine,
{
"root": {
"props": {
"root": {
"hehe": "hoho",
}
}
},
"content": []
}
Is this an expected bug? I don't want to "migrate" the data everytime right? 🤔