specific-silverS
Refine3y ago
8 replies
specific-silver

Refetch not working as expected (Table not updating)

Hi!

I'm using:

tableQueryResult: { refetch } from useTable, and

refetch from useList in two different locations.

Both use the button:

<Button onClick={() => {refetch()}}><RedoOutlined/>Refresh</Button>.

In the networks tab, the correct data is retrieved on click.

However, neither table is updated -- To make sure, I closed the API between the first load and pressing the 'refresh' button, but the original data is still there.

I found someone else having a similar issue a few months back, but they were using MUI/useDataGrid, which I dont believe is part of Ant?

Any insights appreciated!
Was this page helpful?