This commit is contained in:
OrJDev
2022-11-16 16:29:07 +02:00
parent 9a86735ae8
commit 1c4b6873ce
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -26,7 +26,8 @@ export function createSolidProxyDecoration<
return (hooks as any)[lastArg](path, ...args);
}
return (hooks as any)[lastArg](
() => getQueryKey(path, (args[0] as any)()),
() =>
getQueryKey(path, typeof args[0] === "function" ? args[0]() : args[0]),
args[1]
);
});