yucky-goldY
Refine4y ago
4 replies
yucky-gold

Multi Level Menu - Edit on Resource only works on top level?

Within the 'resources' prop of the 'Refine' component in App.tsx. I have the following resource defined,
{
  name: "filterz",
  list: FilterzList,
  edit: FilterzEdit,
  create: FilterzCreate,
  show: FilterzShow
}

and able to interact with the list, edit, create, show, views. The edit and show prepopulate with values of the record.

In those components, the 'refineCoreProps.resource' prop of the data hooks is set to 'filterz'.

When I nest the resource such as,
{
  name: "group"
},
{
  parentName: "group",
  name: "filterz",
  list: FilterzList,
  edit: FilterzEdit,
  create: FilterzCreate,
  show: FilterzShow
}


The List view works as expected, but when triggering the edit view the form is blank, and when triggering the show view the loader hangs.

What could possibly be the issue?
Was this page helpful?