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
+1 -1
View File
@@ -3,7 +3,7 @@
"description": "SolidJS tRPC",
"author": "OrJDev",
"license": "MIT",
"version": "0.0.8-rc.1",
"version": "0.0.9-rc.1",
"publishConfig": {
"access": "public",
"tag": "next"
+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]
);
});