Skip to content

Commit 1b0b2f8

Browse files
authored
Update README.md
1 parent 2f947bd commit 1b0b2f8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -792,6 +792,10 @@ Todos
792792
return attempt * 1000
793793
},
794794

795+
// this will tell useFetch not to run the request if the list doesn't haveMore
796+
// i.e. if the last page fetched was < 15, don't run the request again
797+
perPage: 15,
798+
795799
// these will be the exact same ones as Apollo's
796800
// this will eventually default to 'cache-first'
797801
cachePolicy: 'cache-first', // 'cache-first', 'cache-and-network', 'network-only', 'cache-only', 'no-cache'

0 commit comments

Comments
 (0)