Skip to content

Commit abf7463

Browse files
authored
Make it clearer that fetchMore variables merge is a shallow merge in docs (#12080)
1 parent aba626e commit abf7463

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/source/pagination/core-api.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ return (
6161
}
6262
```
6363

64-
Here, we set the `offset` variable to `feed.length` to fetch items _after_ the last item in our cached list. The `variables` we provide here are merged with the `variables` provided for the original query, which means that variables _omitted_ here (such as `limit`) retain their original value (`10`) in the followup query.
64+
Here, we set the `offset` variable to `feed.length` to fetch items _after_ the last item in our cached list. The `variables` we provide here are shallow merged with the `variables` provided for the original query, which means that variables _omitted_ here (such as `limit`) retain their original value (`10`) in the followup query.
6565

6666
In addition to `variables`, you can optionally provide an entirely different shape of `query` to execute. This can be useful when `fetchMore` needs to fetch only a single paginated field, but the original query contained unrelated fields.
6767

0 commit comments

Comments
 (0)