@zeroin.earth/appwrite-graphql 0.14.9 → 0.14.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2168,7 +2168,7 @@ function useSuspenseFunction({
|
|
|
2168
2168
|
functionId,
|
|
2169
2169
|
body = {},
|
|
2170
2170
|
async = false,
|
|
2171
|
-
path = "",
|
|
2171
|
+
path = "/",
|
|
2172
2172
|
method = "POST"
|
|
2173
2173
|
}) {
|
|
2174
2174
|
const { graphql: graphql2 } = useAppwrite();
|
|
@@ -2176,7 +2176,7 @@ function useSuspenseFunction({
|
|
|
2176
2176
|
const [currentFunction, setCurrentFunction] = (0, import_react5.useState)(null);
|
|
2177
2177
|
const executeFunction = useSuspenseQuery(
|
|
2178
2178
|
{
|
|
2179
|
-
queryKey: ["appwrite", "functions", functionId],
|
|
2179
|
+
queryKey: ["appwrite", "functions", functionId, path],
|
|
2180
2180
|
queryFn: async () => {
|
|
2181
2181
|
setCurrentFunction(functionId);
|
|
2182
2182
|
const { data } = await graphql2.mutation({
|