invalidateQueries does not refresh the table
Symptoms Mutation succeeds. You call invalidateQueries. The table still shows stale data.
Guide
Common runtime issues and fixes
Symptoms Mutation succeeds. You call invalidateQueries. The table still shows stale data.
Symptoms User clicks Copy or Delete. Confirmation dialog opens. Clicking Confirm appears to do nothing.
What this page covers
The original MDX source has been condensed into CMS-native cards so the page can be edited and republished from the control plane.
Symptoms Mutation succeeds. You call invalidateQueries. The table still shows stale data.
Symptoms User clicks Copy or Delete. Confirmation dialog opens. Clicking Confirm appears to do nothing.
Implementation notes
Translation keys, namespaces, and override strategies
$ await queryClient.invalidateQueries({
$ queryKey: ["tableData", "products"],
$ });
$ type BulkActionResult = {
$ success: boolean;