paljs / prisma-tools

Prisma tools to help you generate CRUD system for GraphQL servers
https://paljs.com
MIT License
681 stars 55 forks source link

problems when using menuItem using different queries in the same model #190

Closed gtolarc closed 3 years ago

gtolarc commented 3 years ago

I want to use the menu with the same model separated by query as follows.

const menuItems: MenuItemType[] = {
      title: 'TITLE',
      children: [
        { title: 'SUB_TITLE1', link: { href: '/admin/models/Sample?status=0' } },
        { title: 'SUB_TITLE2', link: { href: '/admin/models/Sample?status=2' } },
      ],
    },
}

In this case, if you click each menu, the routing is fine, but there is a problem that the actual table is not filtered. The cause seems to be that filterHandler is not automatically called according to query changes. Can you solve this problem? @AhmedElywa

AhmedElywa commented 3 years ago

We changed all the admin panel