Skip to content

Commit 7cf7e93

Browse files
committed
Tweak RTKQ comparison
1 parent 269a0ef commit 7cf7e93

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/rtk-query/comparison.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ This comparison table strives to be as accurate and as unbiased as possible. If
8282
| **Lagged queries** | yes | yes | no | ? |
8383
| **Auto garbage collection** | yes | yes | no | ? |
8484
| **Normalized caching** | no | no | yes | yes |
85-
| **Infinite scrolling** | TODO | yes | requires manual code | ? |
85+
| **Infinite scrolling** | yes | yes | requires manual code | ? |
8686
| **Prefetching** | yes | yes | yes | yes? |
8787
| **Retrying** | yes | yes | requires manual code | ? |
8888
| **Optimistic updates** | can update cache by hand | can update cache by hand | `optimisticResponse` | ? |

docs/rtk-query/usage/infinite-queries.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ const pokemonApi = createApi({
198198
endpoints: (build) => ({
199199
getPokemon: build.infiniteQuery<Pokemon[], string, number>({
200200
infiniteQueryOptions: {
201-
initialPageParam: 0,
201+
initialPageParam: 1,
202202
getNextPageParam: (lastPage, allPages, lastPageParam, allPageParams) =>
203203
lastPageParam + 1,
204204
},

0 commit comments

Comments
 (0)