Skip to content

Commit 53d3e02

Browse files
committed
fix
1 parent 393d38e commit 53d3e02

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

exercises/03.data-fetching/04.problem.infinite-fetching-with-fetchers/app/routes/_landing.products._index/use-infinite-product-fetcher.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ export function useInfiniteProductFetcher(
1010
) {
1111
// 💰 we are fetching from the same loader, so we can type this fetcher with the same type as loader-data
1212
const fetcher = 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+
1416
})
1517
// 💰 we are extracting the initial data we fetched and then we will load more from the server
1618
const { products, pagination } = loaderData

0 commit comments

Comments
 (0)