@superbia/untrue 1.1.6 → 1.1.7

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.
Files changed (2) hide show
  1. package/README.md +7 -8
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -373,11 +373,8 @@ To implement paginated requests the server must return a Pagination object.
373
373
  { "_typename": "Post", "_id": "123", "text": "Hello world" },
374
374
  { "_typename": "Post", "_id": "456", "text": "Lorem ipsum" }
375
375
  ],
376
- "pageInfo": {
377
- "_typename": "PaginationPageInfo",
378
- "hasNextPage": true,
379
- "nextPageCursor": "789"
380
- }
376
+ "hasNextPage": true,
377
+ "nextPageCursor": "789"
381
378
  }
382
379
  }
383
380
  ```
@@ -388,7 +385,7 @@ To implement paginated requests the server must return a Pagination object.
388
385
  this.requests = {
389
386
  someRequestKey: {
390
387
  loading: false,
391
- done: false,
388
+ done: true,
392
389
  error: null,
393
390
  data: {
394
391
  userPosts: {
@@ -396,7 +393,8 @@ this.requests = {
396
393
  error: null,
397
394
  data: {
398
395
  nodes: ["123", "456"],
399
- pageInfo: { hasNextPage: true, nextPageCursor: "789" },
396
+ hasNextPage: true,
397
+ nextPageCursor: "789",
400
398
  },
401
399
  },
402
400
  },
@@ -518,7 +516,8 @@ export default Wrapper.wrapContext(Content, AppRequestContext, (props) => {
518
516
  error,
519
517
  data: {
520
518
  nodes: postIds, // renaming for convenience
521
- pageInfo: { hasNextPage, nextPageCursor },
519
+ hasNextPage,
520
+ nextPageCursor,
522
521
  },
523
522
  } = requests[requestKey].data.posts; // the desired request's data
524
523
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superbia/untrue",
3
- "version": "1.1.6",
3
+ "version": "1.1.7",
4
4
  "description": "Integrate Superbia and Untrue.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -13,7 +13,7 @@
13
13
  ],
14
14
  "license": "MIT",
15
15
  "peerDependencies": {
16
- "untrue": "^4.0.5"
16
+ "untrue": "^4.4.2"
17
17
  },
18
18
  "dependencies": {
19
19
  "uuid": "^9.0.0"