living-lavenderL
Refine2y ago
4 replies
living-lavender

custom queryParams to useDataGrid

Hello guys 👋

I have this code
  const dataGrid = useDataGrid<IAccount>({
    resource: "journalLine/ledger",
    pagination: {
      pageSize: 12,
    },
  });


I want to be able to pass custom options to queryParams, for e.g. ?accountId=123 when the API call is made.

How can I do this?
Any help is really appreciated 🙏
Was this page helpful?