Remove queries in the cache that have a key matching any of the specified queryKeys.
queryKeys
removeQueries({ queryKeys: [ ['get-list', 'path'], ['get-one', 'path', '1'], ],}); Copy
removeQueries({ queryKeys: [ ['get-list', 'path'], ['get-one', 'path', '1'], ],});
An array of arrays of keys for which the corresponding queries should be removed.
Remove queries in the cache that have a key matching any of the specified
queryKeys
.Example