mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-18 07:23:51 +01:00
Better HTTP methods
This commit is contained in:
@@ -24,9 +24,17 @@ export function useHttpAuthenticationConfig(
|
||||
);
|
||||
|
||||
return useQuery({
|
||||
queryKey: ['http_authentication_config', requestId, authName, values, responseKey, forceRefreshCounter],
|
||||
queryKey: [
|
||||
'http_authentication_config',
|
||||
requestId,
|
||||
authName,
|
||||
values,
|
||||
responseKey,
|
||||
forceRefreshCounter,
|
||||
],
|
||||
placeholderData: (prev) => prev, // Keep previous data on refetch
|
||||
queryFn: async () => {
|
||||
if (authName == null) return null;
|
||||
const config = await invokeCmd<GetHttpAuthenticationConfigResponse>(
|
||||
'cmd_get_http_authentication_config',
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user