You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: exercises/03.data-fetching/04.problem.infinite-fetching-with-fetchers/app/routes/_landing.products._index/use-infinite-product-fetcher.ts
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,9 @@ export function useInfiniteProductFetcher(
10
10
){
11
11
// 💰 we are fetching from the same loader, so we can type this fetcher with the same type as loader-data
12
12
constfetcher=useFetcher<any>({
13
-
key: 'infinite-product-fetcher',
13
+
// 🐨 Let's define a fetcher key for this fetch
14
+
// 💰 key should be infinite-product-fetcher
15
+
14
16
})
15
17
// 💰 we are extracting the initial data we fetched and then we will load more from the server
0 commit comments