@isograph/react 0.0.0-main-451cf238 → 0.0.0-main-8b64a409

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.
@@ -12,16 +12,6 @@ type UseSkipLimitReturnValue<TArgs, TItem> = {
12
12
  readonly pendingFragment: FragmentReference<any, ReadonlyArray<TItem>>;
13
13
  };
14
14
  /**
15
- * accepts a loadableField that accepts skip and limit arguments
16
- * and returns:
17
- * - a fetchMore function that, when called, triggers a network
18
- * request for additional data, and
19
- * - the data received so far.
20
- *
21
- * This hook will suspend if any network request is in flight.
22
- *
23
- * Calling fetchMore before the hook mounts is a no-op.
24
- *
25
15
  * NOTE: this hook does not subscribe to changes. This is a known
26
16
  * issue. If you are running into this issue, reach out on GitHub/
27
17
  * Twitter, and we'll fix the issue.
@@ -17,16 +17,6 @@ function flatten(arr) {
17
17
  return outArray;
18
18
  }
19
19
  /**
20
- * accepts a loadableField that accepts skip and limit arguments
21
- * and returns:
22
- * - a fetchMore function that, when called, triggers a network
23
- * request for additional data, and
24
- * - the data received so far.
25
- *
26
- * This hook will suspend if any network request is in flight.
27
- *
28
- * Calling fetchMore before the hook mounts is a no-op.
29
- *
30
20
  * NOTE: this hook does not subscribe to changes. This is a known
31
21
  * issue. If you are running into this issue, reach out on GitHub/
32
22
  * Twitter, and we'll fix the issue.
@@ -92,7 +82,7 @@ function useSkipLimitPagination(loadableField) {
92
82
  const mostRecentFragmentReference = mostRecentItem[0].getItemIfNotDisposed();
93
83
  if (mostRecentFragmentReference === null) {
94
84
  throw new Error('FragmentReference is unexpectedly disposed. \
95
- This is indicative of a bug in Isograph.');
85
+ This is indicative of a bug in Isograph.');
96
86
  }
97
87
  const networkRequestStatus = (0, PromiseWrapper_1.getPromiseState)(mostRecentFragmentReference.networkRequest);
98
88
  switch (networkRequestStatus.kind) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@isograph/react",
3
- "version": "0.0.0-main-451cf238",
3
+ "version": "0.0.0-main-8b64a409",
4
4
  "description": "Use Isograph with React",
5
5
  "homepage": "https://isograph.dev",
6
6
  "main": "dist/index.js",
@@ -17,9 +17,9 @@
17
17
  "tsc": "tsc"
18
18
  },
19
19
  "dependencies": {
20
- "@isograph/disposable-types": "0.0.0-main-451cf238",
21
- "@isograph/react-disposable-state": "0.0.0-main-451cf238",
22
- "@isograph/reference-counted-pointer": "0.0.0-main-451cf238"
20
+ "@isograph/disposable-types": "0.0.0-main-8b64a409",
21
+ "@isograph/react-disposable-state": "0.0.0-main-8b64a409",
22
+ "@isograph/reference-counted-pointer": "0.0.0-main-8b64a409"
23
23
  },
24
24
  "peerDependencies": {
25
25
  "react": "18.2.0"
@@ -51,16 +51,6 @@ function flatten<T>(arr: ReadonlyArray<ReadonlyArray<T>>): ReadonlyArray<T> {
51
51
  }
52
52
 
53
53
  /**
54
- * accepts a loadableField that accepts skip and limit arguments
55
- * and returns:
56
- * - a fetchMore function that, when called, triggers a network
57
- * request for additional data, and
58
- * - the data received so far.
59
- *
60
- * This hook will suspend if any network request is in flight.
61
- *
62
- * Calling fetchMore before the hook mounts is a no-op.
63
- *
64
54
  * NOTE: this hook does not subscribe to changes. This is a known
65
55
  * issue. If you are running into this issue, reach out on GitHub/
66
56
  * Twitter, and we'll fix the issue.
@@ -179,7 +169,7 @@ export function useSkipLimitPagination<
179
169
  if (mostRecentFragmentReference === null) {
180
170
  throw new Error(
181
171
  'FragmentReference is unexpectedly disposed. \
182
- This is indicative of a bug in Isograph.',
172
+ This is indicative of a bug in Isograph.',
183
173
  );
184
174
  }
185
175