Skip to content

Commit 76550ee

Browse files
maastrichclaude
andcommitted
fix(query-core): strip meta from options before forwarding to refetchQueries
meta is specific to the invalidate action and should not leak into the refetch call that follows. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent f4c7cfa commit 76550ee

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packages/query-core/src/queryClient.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,12 +302,13 @@ export class QueryClient {
302302
if (filters?.refetchType === 'none') {
303303
return Promise.resolve()
304304
}
305+
const { meta: _meta, ...refetchOptions } = options
305306
return this.refetchQueries(
306307
{
307308
...filters,
308309
type: filters?.refetchType ?? filters?.type ?? 'active',
309310
},
310-
options,
311+
refetchOptions,
311312
)
312313
})
313314
}

0 commit comments

Comments
 (0)