houdini-react 1.3.2 → 1.3.4

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.
@@ -4,6 +4,7 @@ export type MutationHandler<_Result, _Input, _Optimistic extends GraphQLObject>
4
4
  metadata?: App.Metadata;
5
5
  fetch?: typeof globalThis.fetch;
6
6
  optimisticResponse?: _Optimistic;
7
+ abortController?: AbortController;
7
8
  }) => Promise<QueryResult<_Result, _Input>>;
8
9
  export declare function useMutation<_Result extends GraphQLObject, _Input extends GraphQLVariables, _Optimistic extends GraphQLObject>({ artifact, }: {
9
10
  artifact: MutationArtifact;
@@ -4,6 +4,7 @@ export type MutationHandler<_Result, _Input, _Optimistic extends GraphQLObject>
4
4
  metadata?: App.Metadata;
5
5
  fetch?: typeof globalThis.fetch;
6
6
  optimisticResponse?: _Optimistic;
7
+ abortController?: AbortController;
7
8
  }) => Promise<QueryResult<_Result, _Input>>;
8
9
  export declare function useMutation<_Result extends GraphQLObject, _Input extends GraphQLVariables, _Optimistic extends GraphQLObject>({ artifact, }: {
9
10
  artifact: MutationArtifact;
@@ -33,11 +33,13 @@ function useMutation({
33
33
  metadata,
34
34
  fetch,
35
35
  variables,
36
+ abortController,
36
37
  ...mutationConfig
37
38
  }) => observer.send({
38
39
  variables,
39
40
  metadata,
40
41
  session,
42
+ abortController,
41
43
  stuff: {
42
44
  ...mutationConfig
43
45
  }
@@ -4,6 +4,7 @@ export type MutationHandler<_Result, _Input, _Optimistic extends GraphQLObject>
4
4
  metadata?: App.Metadata;
5
5
  fetch?: typeof globalThis.fetch;
6
6
  optimisticResponse?: _Optimistic;
7
+ abortController?: AbortController;
7
8
  }) => Promise<QueryResult<_Result, _Input>>;
8
9
  export declare function useMutation<_Result extends GraphQLObject, _Input extends GraphQLVariables, _Optimistic extends GraphQLObject>({ artifact, }: {
9
10
  artifact: MutationArtifact;
@@ -10,11 +10,13 @@ function useMutation({
10
10
  metadata,
11
11
  fetch,
12
12
  variables,
13
+ abortController,
13
14
  ...mutationConfig
14
15
  }) => observer.send({
15
16
  variables,
16
17
  metadata,
17
18
  session,
19
+ abortController,
18
20
  stuff: {
19
21
  ...mutationConfig
20
22
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "houdini-react",
3
- "version": "1.3.2",
3
+ "version": "1.3.4",
4
4
  "description": "The React plugin for houdini",
5
5
  "keywords": [
6
6
  "typescript",
@@ -42,7 +42,7 @@
42
42
  "recast": "^0.23.1",
43
43
  "rollup": "^4.28.1",
44
44
  "use-deep-compare-effect": "^1.8.1",
45
- "houdini": "^1.4.2"
45
+ "houdini": "^1.5.0"
46
46
  },
47
47
  "files": [
48
48
  "build"